这个程序哪里有问题啊
#define COUNT 100#include "stdio.h"
struct student
{char name[20];
char xh[20];
float scorerank;
}st[COUNT];
main()
{
FILE *fp;
int i;
char ch;
float f;
if((fp=fopen("studata.rec","a"))==NULL)
{printf("\n文件studata.rec打不开!\n");
exit(0);
}
i=0;
do
{printf("请输入学生信息:姓名,学号,成绩等级");
scanf("%s%s%f",st[i].name,st[i].xh,&f);
st[i].scorerank='a''b''c''d''e';
fwrite(&st[i],sizeof(struct student),1,fp);
i++;
printf("\n继续输入学生信息(y/n)?");
ch=getchar();
}
while(ch=='y'||ch=='Y');
fclose(fp);
}