热门标签
更多>
搜索结果
查询Tags标签: 第五十一篇,共有 2条记录-
C++学习第五十一篇
/* * 结构体中const使用场景 * 作用:用const来防止误操作 */ #include<iostream> #include <string> using namespace std;//定义学生结构体 struct student {string name;//姓名int age; //年龄int score;//分数 };void printStudents(const student *s) {/…
2021/11/28 11:10:34 人评论 次浏览 -
C++学习第五十一篇
/* * 结构体中const使用场景 * 作用:用const来防止误操作 */ #include<iostream> #include <string> using namespace std;//定义学生结构体 struct student {string name;//姓名int age; //年龄int score;//分数 };void printStudents(const student *s) {/…
2021/11/28 11:10:34 人评论 次浏览