当前学科:VB程序设计
  • 题目: 未知类型

      用以下程序把从键盘输入的字符存放到一个文件中,用字符作为结束符,请按题意要求填空完善程序。 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); }

    答案: <查看本题扣1积分>

    查看答案

    答案不对?请尝试站内搜索