摘要:
注意: 在结构体中可以定义另一个结构体作为成员,用来解决实际问题 先定义 子结构体,后定义 父结构体 点击查看代码 #include<iostream> #include<string> using namespace std; //先定义 子 结构体 struct student { //成员列表 阅读全文
posted @ 2021-08-04 16:03
毋纵年华
阅读(910)
评论(0)
推荐(0)
摘要:
结构体数组 点击查看代码 #include<iostream> #include<string> using namespace std; //结构体数组 //1、定义结构体 struct Student { //成员列表 string name; int age; int score; }; in 阅读全文
posted @ 2021-08-04 15:25
毋纵年华
阅读(158)
评论(0)
推荐(0)