全文预览

C语言复习题

上传者:hnxzy51 |  格式:pdf  |  页数:52 |  大小:3910KB

文档介绍
‚”|ñò èë|´ïkb†' |Æ}óôf”|ñ\rò èëρõö„{|÷ø”|ñòèë ù|._`.\r#include<stdio.h>\rftdefineN16EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rtypedefstruct\rcharnum[10];\rints;\r}STREC;\rintfun(STREC*a,STREC*b)\r(\rinti,j=0,max=a[O].s;\rfor(i=0;i<N;i++)\rif(max<a[i].s)max=a[i].s;\rfor(i=0;i<N;i++)\rif(a[i].s==max)b[j++]=a[i];\rreturnj;\r)\rvoidmain()\rI\rSTRECs[N]={{“GA005”85},{“GA003"76},{“GA002”69},{“GA004"85},\r{“GAOO1”91},{“GA007"72},{“GA008"64},{“GA006”87},{“GA0015”85},\r{“GA0013”91},{“GA0012”64},{“GA0014”91},{“GAOO11"66},{“GA0017”64}\r{“GA0018”64},{“GA0016”72},};\rSTRECh[N];\rinti,n;EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rn=fun(s,h);\rprintf("The%dhighestscore:\nn,n);\rfor(i=0;i<n;i++)\rprintf(u%s%4d\nw,h[i].num,h[i].s);\rprintf("\n”);\r)

收藏

分享

举报
下载此文档