struct 结构体
struct student {
int age;
char *name;
};
struct student one ={23,"zefeng"};
struct student two = {55,"fengzi"};
two.age=99;
struct student all[2]={one,two};
printf("%d",all[1].age);
struct student * stu =&two;
printf("\n(*stu).age===%d name===%s", (*stu).age,stu->name);

浙公网安备 33010602011771号