#include<string.h>
struct student
{int num;
char name[20];
float score[3];
}stu;
main()
{scanf("%d%s%f%f%f",&stu.num,stu.name,&stu.score[0],
&stu.score[1],&stu.score[2]);
void print(struct student *);
print(&stu);
}
void print(struct student *p)
{printf("%d\n%s\n%f\n%f\n%f\n",stu.num,stu.name,stu.score[0],
stu.score[2],stu.score[1]);
}
红字部分报错,请各位高手指教