将从键盘输入的字符串写入文本文件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(_________); /*第三空*/
}
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服