摘要: #include<stdio.h> #include<string.h> struct Student { char name[32]; int age; int height; int weight; }; int main() { struct Student stu1={"hhh",12,45 阅读全文
posted @ 2022-11-03 22:40 WellMandala 阅读(45) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<string.h> struct Student { char name[32]; int age; int height; int weight; }; int main() { struct Student Stus[3]={ {"hhh", 阅读全文
posted @ 2022-11-03 22:32 WellMandala 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 数组只能存放一种类型的数据,而结构体内可以存放不同类型的数据。 #include<stdio.h> #include <string.h> struct Student { char name[32]; int age; int height; int weight; }; int main() { 阅读全文
posted @ 2022-11-03 21:35 WellMandala 阅读(33) 评论(0) 推荐(0) 编辑