全文预览

C语言期末题库

上传者:upcfxx |  格式:pdf  |  页数:87 |  大小:9407KB

文档介绍
*********Begin*************/\r/*************End*************/\r)\rvoidmain()\r(\rFILE*wf;\rSTRECs[N]={{•GA005•85},{•GA003•76},{•GA002•69},{•GA004•85},\r{•GA001•91},{•GA007•72},{•GA008•64},{•GA006•87},\r{•GA015•85},{•GA013•91},{•GA012•64},{•GA014•91},\r{"GA011•,66},{"GA017”,64},{•GA018•,64},{•GA016•,72}};\rSTRECh[N];\rinti,n;\rn=fun(s,h);\rprintf(zThe%dhighestscore:\n•n);\rfor(i=0;i<n;i++)\rprintf(z%s%4d\nz,h[i].num,h[i].s);/*–\nˆ‰Psts!xy*/\rprintf("\n•)—\rwf=fopen(/zdebug\out27.dat••w•)—\rfprintfCwf,˜d\n•n);\rfor(i=0;i<n;i++)\rfprintf(wf,,z%s%4d\n”,h[i].num,h[i].s);\rfclose(wf);\r)\r10,abcdef\rinti,j=0,max=a[0].s;\rfor(i=0;i<N;i++)\rif(max<a[i].s)\rmax=a[i].s;/*~€|*/\rfor(i=0;i<N;i++)\rif(max=a[i].s)b[j++]=a[i];\r/*~F‚+maxƒ„:mn:op,qC()*br*/\rreturnj;\r/*st€jF‚:mnxp*/

收藏

分享

举报
下载此文档