c++ 中函数名前面加两个冒号什么意思?比如::SetCursor()
如题
2010-05-13 10:57
2010-05-13 10:58
2010-05-13 11:07
2010-05-13 11:44
程序代码:#include <iostream>
using namespace std;
int a =1;
int main()
{
int a = 3;
cout<<::a<<endl; //输出1
cout<<a<<endl; //输出3
return 0;
}
2010-05-13 12:06
2010-05-13 13:47
2010-05-13 14:07
2010-05-13 18:14