条件编译有几种形式,可以把这个程序再改一种形式?
#include<iostream>using namespace std;
#define RUN
int main()
{
int x=1,y=2,z=3;
#ifndef RUN
cout<<"x="<<x<<",y="<<y<<",z="<<z;
#endif
cout<< "x * y * z="<<x*y*z<<endl;
return 0;
}
2013-04-12 08:01
2013-04-12 10:56
2013-04-12 13:19