创建引用变量

例如,要将 rodents作为rats变量的别名,可以这样做:

  1. int rats;
  2. int& rodents=rats; //引用

其中,&不是地址运算符,而是类型标识符的一部分。