摘要: 一、c++的引用 reference 1.1 概念:引用是另外一个变量的别名 1.2 值传递 和 引用传递 myswap1(int x, int y);//值传递 myswap2(int *x, int *y);//地址传递,本质上是值传递,传递的是地址值 myswap3(int &x, int & 阅读全文
posted @ 2017-05-18 16:16 小不懂装懂 阅读(94) 评论(0) 推荐(0) 编辑