#include<iostream>
using namespace std;
int i=3;
int main(){
double i=2.2;
cout<<"局部变量:"<<i<<endl;
cout<<"全局变量:"<<::i<<endl;
return 0;
}
#include<iostream>
using namespace std;
int i=3;
int main(){
double i=2.2;
cout<<"局部变量:"<<i<<endl;
cout<<"全局变量:"<<::i<<endl;
return 0;
}