freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

計(jì)算機(jī)c語言例題-文庫吧

2025-12-12 09:09 本頁面


【正文】 ++) printf(\na[%d]=%d\n,i,a[i])。 puts(\nAny key to exit!)。 getch()。 } void sub1(b) int b[]。 { int i,j,t。 for (i=1。i10。i++) //the first one is always the smallest for(j=i。j=10。j++) if (b[i]b[j]) { t=b[i]。 b[i]=b[j]。 b[j]=t。 } } void sub2(int b[],int k) { int i。 for(i=10。i=1。i) { if(kb[i]) b[i+1]=b[i]。 else { b[i+1]=k。 break。 } } } 1某班有 5 個(gè)學(xué)生,三門課。分別編寫 3 個(gè)函數(shù)實(shí)現(xiàn)以下要求: ( 1) 求各門課的平均分; ( 2) 找出有兩門以上不及格的學(xué)生,并輸出其學(xué)號(hào)和不及格課程的成績; ( 3) 找出三門課平均成績?cè)?8590 分的學(xué)生,并輸出其學(xué)號(hào)和姓名 主程序輸入 5 個(gè)學(xué)生的成績,然后調(diào)用上述函數(shù)輸出結(jié)果。 define SNUM 5 /*student number*/ define CNUM 3 /*course number*/ include include /*disp student info*/ void DispScore(char num[][6],char name[][20],float score[][CNUM]) { int i,j。 printf(\n\nStudent Info and Score:\n)。 for(i=0。iSNUM。i++) { printf(%s ,num[i])。 printf(%s ,name[i])。 for(j=0。jCNUM。j++) printf(%,score[i][j])。 printf(\n\n)。 } } /*calculate all student average score*/ void CalAver(float score[][CNUM]) { float sum,aver。 int i,j。 for(i=0。iCNUM。i++) { sum=0。 for(j=0。jSNUM。j++) sum=sum+score[j][i]。 aver=sum/SNUM。 printf(Average score of course %d is %\n,i+1,aver)。 } } /*Find student: two courses no pass*/ void FindNoPass(char num[][6],float score[][CNUM]) { int i,j,n。 printf(\nTwo Course No Pass Students:\n)。 for(i=0。iSNUM。i++) { n=0。 for(j=0。jCNUM。j++) if(score[i][j]60) n++。 if(n=2) { printf(%s ,num[i])。 for(j=0。jCNUM。j++) if(score[i][j]60) printf(%,score[i][j])。 pr
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1