#include <iostream> using namespace std; int key = 2012; void main() { int key = 100; cout<<"key="<<key<<endl; cout<<"::key="<<::key<<endl; }
输出:
key=100
::key=2012