扫眼例子,就能看懂:
1.struct student{
char name[10];
long PhoneNum;
char addr[20];
};
struct student stu1,stu2;
2.struct student{
char name[10];
long PhoneNum;
char addr[20];
}stu1,stu2;
3.typedef struct student{
char name[10];
long PhoneNum;
char addr[20];
}STU;
STU stu1,stu2;
ps:都带分号