#include//定义结构体的三种方式,推荐使用第三种 //第一种 struct student1 { int age; char name[20]; float score; }; //第二种 struct student2 { int age; char name[20]; float score; }stu1; //第三种 struct { int age; char name[20]; float score; }stu2;

#include//定义结构体的三种方式,推荐使用第三种 //第一种 struct student1 { int age; char name[20]; float score; }; //第二种 struct student2 { int age; char name[20]; float score; }stu1; //第三种 struct { int age; char name[20]; float score; }stu2;