将从键盘输入的字符串写入文本文件out.txt,输入的字符串长度小于80。#include #include void main

作者:高老师 浏览 3

将从键盘输入的字符串写入文本文件out.txt,输入的字符串长度小于80。#include #include void main(){char c[80];____________); /*第一空*/if((p=fopen("out.txt", "w"))==NULL){ printf("Can not open file!\n"); exit(0);}gets(____________); /*第二空*/fputs(c,p);fclose(____________); /*第三空*/}
【正确答案】:第一空:FILE *p第二空:c第三空:p

📱 扫码体验刷题小程序

微信小程序二维码

扫一扫使用我们的微信小程序

热门题目

已复制到剪贴板