自考题库
首页
所有科目
自考历年真题
考试分类
关于本站
游客
账号设置
退出登录
注册
登录
搜索
下列程序的主要功能是()。 #include
main( ) { FILE *in,*out; char ch,infile[10],outfile[10]; printf(“Enter the infile name:/n”); scanf(“%s”,infile); printf(“Enter the outfile name:/n”); scanf(“%s”,outfile); if((in=fopen(infile, “r”))==NULL){ printf(“Cannot open infile/n”); exit(0); } if((out=fopen(outfile, “w”))==NULL){ printf(“Cannot open outfile/n”); exit(0); } while(!feof(in)) fputc(fgetc(in),out); fclose(in); fclose(out); }
出自:
考研
显示答案
提示:
同一【IP】的非会员用户每天可免费获取10次答案
收藏本站【zk.995w.com】,下次访问不迷路
本站试题总数:【10244422】个 (题库试题定时更新)