用以下程序把从键盘输入的字符存放到一个文件中,用字符作为结束符,请按题意要求填空完善程序。 include<stdio.h> main() { FILE*fp; char ch,fname[10]; printf("Input the name of file\n"); gets(fname); if(fp=fopen(【 】))==NULL) {printf("cant open\n"); 【 】; } while((ch=getchar())!=) fputc(【 】); fclose(fp); }
答案不对?请尝试站内搜索