全文预览

C语言编程文库所有题答案

上传者:hnxzy51 |  格式:pdf  |  页数:92 |  大小:8222KB

文档介绍
Letter,haveErr=0;EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rif(argc!=3)\r(\rprintf("\nusage:P7-764sourceFilenamedestinationFilename\nn);\rexit(l);\r)\rfpSrc=fopen(argv[l],'frb'1);\rif(NULL==fpSrc)\r(\rprintf(M\nsourceFile(%s)OpenError!\n'\argv[l]);\rexiK2);\r)\rfpDst=fopen(argv[2],uwbM);\rif(NULL==fpDst)\r(\rfclose(fpSrc);\rprintf('^destinationFile(%s)CreateError!\nH,argv[2]);\rexitϘ\r)\rwhile(1)\r(\rcLetter=getc(fpSrc);\rif(EOF==cLetter)\r(\rbreak;\r)\rcLetter=putc(cLetter,fpDst);\rif(EOF=cLetter)\r(\rhaveErr=1;\rprintf("\nwritingdestinationFile(%s)Error!\n",argv[2]);\rbreak;\r)\r)\rfclose(fpSrc);\rfclose(fpDst);\rif(JhaveErr)\rprintf("\ncopy%sto%ssuccessed!\n",argv[l],argv[2]);\r)\relseEvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rreturn4;\rreturn0;\r}

收藏

分享

举报
下载此文档