C语言 文件怎么引用

save_message( ) { FILE *fp; int i; if((fp=fopen("dom.txt","wt"))==NULL) { printf("读文件错误!\n"); return 0; } for(i=0;i<sum;i++) if(fwrite(&amp;s[i],sizeof(struct dom),1,fp)!=1) printf("写文件错误!\n"); fclose(fp); } 提示错误: [Error] E:\My C-F\Projects\宿舍管理系统.cp...
默认分类 | 2015-05-13 14:05 | 阅读 1173 次 | 评论 0 条
文章分类
文章归档
最新评论