
在C盘根目录下创建一个名为”c.txt”的文本文件,文本文件的内容从键盘读取,直到遇到"\n"(回车键)为
在C盘根目录下创建一个名为”c.txt”的文本文件,文本文件的内容从键盘读取,直到遇到"\n"(回车键)为止。程序清单如下:#include<stdio.h>#included<______>/*第一空*/void main(){FILE*fp;char c;if((fp=fopen("C:\c.txt","______"))==NULL)/*第二空*/{printf("can not open file!\n");exit(0);)while((______)!=='\n')/*第三空*/fput(c,fp);fclose(fp);}
#include<stdio.h>#included<______>/*第一空*/void main(){FILE*fp;char c;if((fp=fopen("C:\c.txt","______"))==NULL)/*第二空*/{printf("can not open file!\n");exit(0);)while((______)!=='\n')/*第三空*/fput(c,fp);fclose(fp);}
#included<______>/*第一空*/void main(){FILE*fp;char c;if((fp=fopen("C:\c.txt","______"))==NULL)/*第二空*/{printf("can not open file!\n");exit(0);)while((______)!=='\n')/*第三空*/fput(c,fp);fclose(fp);}
void main(){FILE*fp;char c;if((fp=fopen("C:\c.txt","______"))==NULL)/*第二空*/{printf("can not open file!\n");exit(0);)while((______)!=='\n')/*第三空*/fput(c,fp);fclose(fp);}
{FILE*fp;char c;if((fp=fopen("C:\c.txt","______"))==NULL)/*第二空*/{printf("can not open file!\n");exit(0);)while((______)!=='\n')/*第三空*/fput(c,fp);fclose(fp);}
char c;if((fp=fopen("C:\c.txt","______"))==NULL)/*第二空*/{printf("can not open file!\n");exit(0);)while((______)!=='\n')/*第三空*/fput(c,fp);fclose(fp);}
if((fp=fopen("C:\c.txt","______"))==NULL)/*第二空*/{printf("can not open file!\n");exit(0);)while((______)!=='\n')/*第三空*/fput(c,fp);fclose(fp);}
{printf("can not open file!\n");exit(0);)while((______)!=='\n')/*第三空*/fput(c,fp);fclose(fp);}
while((______)!=='\n')/*第三空*/fput(c,fp);fclose(fp);}
fput(c,fp);fclose(fp);}
fclose(fp);}
}

