请告诉我,我又那错了!成绩怎么显示不出呀!
#include <stdio.h>#define N 5
struct student
{
int num;
char *name;
float score;
};
void main()
{
struct student stu[N];
int i;
for(i=0;i<N;++i)
{
printf("请输入第%d个学员的信息:\n",i+1);
printf("学号:");
scanf("%d",&stu[i].num);
printf("姓名:");
fflush(stdin);
gets(stu[i].name);
printf("C课程成绩:");
scanf("%5.2f",&stu[i].score);
printf("java课程成绩:");
scanf("%5.2f",&stu[i].score);
}
}没错误信息呀!就是显示不出成绩!