z 为啥是 1 不是 2 呢?
#include<iostream>using namespace std;
void main()
{
int x=3,y=6,z=0;
while(x++!=(y-=1))
{
++z;
if(y<x)
break;
cout<<z<<endl;
}
cout<<"x="<<x<<",y="<<y<<",z="<<z<<endl;
}
2014-06-28 20:39

2014-06-28 23:03
2014-06-29 23:12
2014-06-30 08:55
2014-06-30 12:06
2014-06-30 18:31
2014-07-15 11:03