#include<iostream> using namespace std; int main() { int a = 4; const int &b = a; // const引用可以指向一个非const变量 cout << b << endl; a += 1; cout << "a=" << a << ",b=" << b << endl; return 0; }