C++Note 引用下
摘要:
引用作函数的返回值 1.不要返回局部变量的引用 2.函数的调用可以作为左值 1 #include <iostream> 2 using namespace std; 3 4 //引用做函数的返回值 5 //1.不要返回局部变量的引用 6 int& test01() 7 { 8 int a = 10; 阅读全文
posted @ 2023-06-09 17:14 廿陆 阅读(14) 评论(0) 推荐(0)
posted @ 2023-06-09 17:14 廿陆 阅读(14) 评论(0) 推荐(0)
posted @ 2023-06-09 16:27 廿陆 阅读(15) 评论(0) 推荐(0)
posted @ 2023-06-09 11:52 廿陆 阅读(32) 评论(0) 推荐(0)