正在加载图片...
void save FILE * fp int i: if((fp=fopen "c:stu dat",wb==NULL i printf("cannot open fileIn); return; for(i=0; i<SIZE; i++) if(fwrite(&studi], sizeof(struct student type), 1, fp)!=1) printf(" file write errorin"); fclose(tp);void save() { FILE *fp; int i; if((fp=fopen(" c:\\stu_dat","wb"))==NULL) { printf("cannot open file\n"); return; } for(i=0;i<SIZE;i++) if(fwrite(&stud[i],sizeof(struct student_type),1,fp)!=1) printf("file write error\n"); fclose(fp); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有