struct boy { long num; char name[20]; struct { int year; int month; int today; } day; } stu[3]; void print (struct boy stu) { int i; for(i=0;i<3;i++) printf("the num is%ld\nthe name is%s\nthe birthday is%d %d %d",stu[i].num,stu[i].name,stu[i].day.year,stu[i].day.month,stu[i].day.today); } main() { int i; for(i=0;i<3;i++) scanf("%ld%s%d%d%d",&stu[i].num,stu[i].name,&stu[i].day.year,&stu[i].day.month,&stu[i].day.today); print(stu); }
大家帮我看一下这个程序,哪里有错误,紧急求救!!