怎么老是提示“stdio.h”出错??
各位CS的兄弟,帮忙看个初级C程序,怎么老是提示“stdio.h”出错??
# define size 4
# include <stdio.h>
struct stud_type
{ char nam[15];
int number;
char sex;
char addr[20];
}stu[size];
void save()
{ FILE *fp;
int i;
if( (fp=fopen("D:\\tc\\bakup\\student.c","wb+"))==NULL)
printf(" open error!!!!!\n");
for(i=0;i<size;i++)
if((fwrite(&stu[i],sizeof(struct stud_type),1,fp))!=1)
printf(" write error!!\n")
fclose(fp);
}
main()
{ int i;
printf("input data:\n");
for(i=0;i<size;i++)
scanf("%s%d%%c%s",stu[i].nam,&stu[i].number,&stu[i].sex,stu[i].addr);
save();
}