2.3.1引用

int &r1 = 10; //error 不能赋字面敞亮

double dval = 3.14;

int &r2 = dval; //error 类型不同

原文地址:https://www.cnblogs.com/CreatorKou/p/8542519.html