摘要: 引用 一、引用的基本使用: #include <iostream> using namespace std; ​ int main() { //引用的基本语法 int a = 10; int &b = a; ​ cout << "a = " << a << endl; cout << "b = " 阅读全文
posted @ 2021-08-04 19:02 yiwenzhang 阅读(38) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> ​ using namespace std; ​ //全局变量 int g_a = 10; int g_b = 10; ​ //const 修饰的全局变量,全局常量 const int c_g_a = 10; const int c_g_b = 10; ​ i 阅读全文
posted @ 2021-08-04 17:41 yiwenzhang 阅读(33) 评论(0) 推荐(0) 编辑