07 2025 档案

摘要:#include <iostream> #include <string> using namespace std; //定义学生结构体 struct Student { //定义成员列表 string name; int age; int score; }; //值传递 void printStu 阅读全文
posted @ 2025-07-05 16:46 little小新 阅读(11) 评论(0) 推荐(0)
摘要:将结构体作参数传入函数中 #include <iostream> #include <string> using namespace std; //定义学生结构体 struct Student { //定义成员列表 string name; int age; int score; }; //值传递 阅读全文
posted @ 2025-07-05 16:33 little小新 阅读(16) 评论(0) 推荐(0)
摘要:#include <iostream> #include <string> using namespace std; //定义学生结构体 struct Student { //定义成员列表 string name; int age; int score; }; //定义老师结构体 struct te 阅读全文
posted @ 2025-07-05 16:19 little小新 阅读(4) 评论(0) 推荐(0)
摘要:#include <iostream> #include <string> using namespace std; //定义结构体 struct Student { //定义成员列表 string name; int age; int score; }; int main() { //声明结构体变 阅读全文
posted @ 2025-07-05 16:08 little小新 阅读(14) 评论(0) 推荐(0)