摘要: C++引用总结 一、基本使用 引用就相当于于起别名。 语法:数据类型 & 别名 = 原名 c++ include using namespace std; //引用做函数的返回值 //1.不要返回局部变量的引用 int& test01() { int a = 10; //局部变量存放在四区中的 栈区 阅读全文
posted @ 2020-04-10 19:58 Akmf's_blog 阅读(168) 评论(0) 推荐(0)