#include
#include
struct student
{char name[20];
char sex;
int age;
float score;
char addr[30];
struct date
{ int month;
int day;
int year;
}birthday;
}st1,st2;
int main()
{ struct student st1[3]={"a1",'M',19,78,"aaa",1,1,1998,"b1",'M',19,98,"bbb",2,1,1998,"c1",'M',19,88,"ccc",3,1,1998};
int i,j;
for(i=0;i<3;i++)
{
printf("姓名:%s,性别:%s,年龄:%d",st1[i].name,st1[i].sex,st1[i].age);
printf("分数%f,地址:%s",st1[i].score,st1[i].addr);
printf("生日:%d年%d月%d日",st1[i].birthday.year,st1[i].birthday.month,st1[i].birthday.day);
}
}
各位大神帮忙看看这是啥问题,运行时不会出现要输出的数据??