摘要:
引用的基本使用 作用:给变量起别名 语法:数据类型 &别名 = 原名 图示: 代码: //引用基本语法 //数据类型 &别名 = 原名 int a = 10; int &b = a; //创建引用 //结果:a=10 b=10 cout << "a=" << a << endl; cout << " 阅读全文
posted @ 2024-03-05 23:08
バカなの
阅读(248)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <string> using namespace std; struct Person { string m_Name; //姓名 int m_Sex; //性别 int m_Age; //年龄 string m_Phone; //电话 st 阅读全文
posted @ 2024-03-05 15:57
バカなの
阅读(65)
评论(0)
推荐(0)

浙公网安备 33010602011771号