struct student{
int a;
char name[20];
}; // 这里student是一个类型,可定义变量,例如:student st1={123,{‘a‘,‘a‘,‘\0‘}};student *s=&st1;
}a1,a2; // 直接在这儿定义结构体变量
结构体
原文:https://www.cnblogs.com/pjishu/p/9223476.html