07 2025 档案
摘要:#include <iostream> #include <string> using namespace std; //定义学生结构体 struct Student { //定义成员列表 string name; int age; int score; }; //值传递 void printStu
阅读全文
摘要:将结构体作参数传入函数中 #include <iostream> #include <string> using namespace std; //定义学生结构体 struct Student { //定义成员列表 string name; int age; int score; }; //值传递
阅读全文
摘要:#include <iostream> #include <string> using namespace std; //定义学生结构体 struct Student { //定义成员列表 string name; int age; int score; }; //定义老师结构体 struct te
阅读全文
摘要:#include <iostream> #include <string> using namespace std; //定义结构体 struct Student { //定义成员列表 string name; int age; int score; }; int main() { //声明结构体变
阅读全文