#include<iostream>
using namespace std;
int main() {
//数据类型 &别名 = 原名
int a = 10;
int& b = a;
cout << a << endl;
cout << b << endl;
a = 20;
cout << a << endl;
cout << b << endl;
b = 2033;
cout << a << endl;
cout << b << endl;
//注意事项
//1.int &c;错误引用必须初始化
//2.一旦引用不能更改
int& c = a;
int d = 99;
cout << c << endl;
//这是赋值操作,不是更改引用
c = d;
cout << c << endl;
return 0;
}