全文预览

万维考试系统-C语言题库-程序设计题导出-113道

上传者:幸福人生 |  格式:pdf  |  页数:167 |  大小:13392KB

文档介绍
`n d **********/\rmain()\r(\rint n;\rlong int result;\rscanf("%d",&n);\rresult=fun(n);\rprintf("%ld\n",result);\rwwjt();\r}\rvoid wwjt()\r{\rFILE *IN,*OUT;\rint i;\rint ilN;\rlong int iOUT;\rIN=fopen("in.dat","r");\rif(IN=NULL)\r|\rprintf("Please Verify The Curremt Dir..It May Be Changed");\rOUT=fopen("out.dat","w");\rif(OUT=NULL)\r|\rprintf("Please Verify The Current Dir.. It May Be Changed");\rfor(i=0;i< 10;i++)\r(\rfscanf(IN,"%d",&irN);\riOUT=fun(iIN);\rfprintf(OUT,"%ld\n",iOUT);\r}\rfclose(IN);\rfclose(OUT);\r--------------\rint i;.\rfloat f=l,s=O;\rfor(i=l;i<=n;i-H-) { 4 # i;\rs=s+f;}\rreturn s;

收藏

分享

举报
下载此文档