题目内容
以下程序完成的功能是___。#include "stdio.h"void main(){ FILE *in,*out;char ch,infile[10],outfile[10];printf("Enter the infile name:");scanf("%s",infile);printf("Enter the outfile name:");scanf("%s",outfile);if((in=fopen(infile,"r"))==NULL){printf("cannot open infile\n");exit(0);}if((in=fopen(outfile,"w"))= =NULL){printf("cannot open outfile\n");exit(0);}ch=fgetc(in);while(!feof(in)){fputc(ch,out);ch=fgetc(in);}fclose(in);fclose(out); }
查看答案
搜索结果不匹配?点我反馈