📄 6_19.cpp
字号:
#include <iostream>
using namespace std;
int main()
{ int n=44;
//int& rn=55; //错误:55不是一个变量!
int& rn=n; //rn 是变量 n的别名
cout << "The value of n is: " << n << ", The value rn is: " << rn << endl;
--n; cout << "The value of n is: " << n << ", The value rn is: " << rn << endl;
rn *= 3; cout << "The value of n is: " << n << ", The value rn is: " << rn << endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -