::C++ではどういう意味ですか

674 ワード

::          ,     :
1)global scope( ), (::name)
int a;

void test ()
{
  	int a = ::a;//     a,     a  
}

2)class scope(クラス役割ドメイン記号)、使い方(class::name)
class A
{
  	public:
    	int test();
}

int A::test()//  test   A 
{
 	return 0;
}

3)namespace scope(ネーミングスペース役割ドメイン)、使い方(namespace::name)
 
  
std::cout<