c++ 引用类型

373 阅读1分钟
int a=1;
//通过&符号,将b定义为a的引用`
int &b=a;
//b和a完全一样,等价于int c=a`
int c=b;