全文预览

C语言总复习

上传者:你的雨天 |  格式:pdf  |  页数:57 |  大小:4272KB

文档介绍
reated with Spire.PDF for .NET.\rin t i, j=0, max=a[O]. s;\rfor (i=0;i<N;i++)\rif(m ax<a[i]. s) max=a[i]. s;\rfor (i=0;i<N;i++)\ri f ( aEi]. s==max ) b [j+ + ]= a[i];\rreturn j ;\r)\rvoid main()\rSTREC\rs[N] = {{ "GA005” 85}, { “GA003” 76}, { “GA002” 69}, { “GA004” 85},\r{ “GA001” 91}, { “GA007” 72}, { “GA008” 64}, { “GA006” 87}, { “GA0015\r” 85},\r{ “GA0013” 91}, { “GA0012” 64}, { “GA0014” 91}, { “GA0011” 66}, { “GA\r0017” 64},\r{ “GA0018” 64}, { “GA0016” 72},};\rSTREC h[N];\rin t i, n;\rn=fun (s, h );\rp rin tf( "The %d highest score:\n "  n );\rfor (i=0;i<n;i++)\rp rin tf( u %s %4d\nv , h [i]. num, h [i]. s ) ;\rp rin tf ( " \n ” );.\r)

收藏

分享

举报
下载此文档