reference 引用相当于 变量的别名
#include <iostream> using namespace std; int main() { int age = 30; int &refAge = age; refAge = 20; cout << age << endl; std::cout << "Hello World!\n"; getchar(); }