没注释,其思路基本是这样,输入两个数X+Y,如果其和要是小于100的话,那么循环提示输入一个Z,累加直到大于100后,输出结果并退出程序。
/*2002.08.24.My.Second.Training.Programme*/
//I.Love.C.Double.Plus
#include <iostream.h>
main()
{
cout<<"please input 2 nums,let them to add";
cout<<endl;
cout<<"please input x.value:";
long int x,y;
cin>>x;
cout<<"please input y.value:";
cin>>y;
long int z=0;
long int A;
A=z+x+y;
while (A<100)
{cout<<"please add a num to make sure let them over 100!";
cin>>z;
A=A+z;
}
cout<<"yes!the sum is over 100, it's "<<A;
return 0;
//cin<<"because the z.value is refresh every time! so..."
}