int main()
{
unsigned int x;
printf("enter x:");
scanf("%d,%d",&x,&y);
if(x<1000);
y=x^(1/2);
printf("x=%d,y=%d\n",x,y);
return 0;
}
1>f:\users\lenovo\documents\visual studio 2008\projects\4.23\4.23\a.cpp(6) : error C2065: “y”: 未声明的标识符
1>f:\users\lenovo\documents\visual studio 2008\projects\4.23\4.23\a.cpp(8) : warning C4390: “;”: 找到空的受控语句;这是否是有意的?
1>f:\users\lenovo\documents\visual studio 2008\projects\4.23\4.23\a.cpp(8) : error C2065: “y”: 未声明的标识符
1>f:\users\lenovo\documents\visual studio 2008\projects\4.23\4.23\a.cpp(9) : error C2065: “y”: 未声明的标识符