怎么就错了啊?
#include<stdio.h>int x=5;
int main(void)
{
printf("\nx1=%d",x);
{int x=3;printf("\nx2=%d",x);printf("\nx3=%d",::x);}
return 0;
}//请给说说"::"怎么就错了啊 ?谢谢哈!
#include<iostream> using namespace std; int x=5; int main(void) { cout<<"x1="<<x<<endl; { int x=3; cout<<"x2="<<x<<endl; cout<<"x3="<<::x<<endl; } return 0; }