一个难解决的问题,please help!
yi519 2003-06-06 11:11:40 #include<stdio.h>
#include<stdlib.h>
struct student
{char name[10];
int num;
float score[3];
}b[3];
main()
{int i;
FILE *p;
printf("Input the message:\n");
for (i=0;i<3;i++)
scanf("%s%d%f%f%f",b[i].name,&b[i].num,&b[i].score[0],&b[i].score[1],&b[i].score[2]);
if((p=fopen("c:\\yi1.c\\yi2.c","w"))==NULL)
{printf("cannot open the file");
exit(0);}
for(i=0;i<3;i++)
fwrite(&b[i],sizeof(struct student),1,p);
fclose(p);
}
为什么编译不通过?