摘要: #include <iostream> //引用的含义:int &a 实际上是 int * const a 本质上就是一个指针常量 int& swap() { static int a = 10; return a; } int main() { int &ref = swap(); std::co 阅读全文
posted @ 2022-08-13 16:57 小白duzw 阅读(78) 评论(0) 推荐(0) 编辑