#include<iostream>
#include <vector>
#include <string>
using namespace std;
int value = 0;
void printvalue()
{
cout << value << endl;
}
int main() {
int value = 0; value = 1;
cout << value << endl;
::value = 2;
printvalue();
return 0;
}
//输出:
//1
//2
::操作全局变量
最新推荐文章于 2023-12-14 01:04:29 发布