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

正文內(nèi)容

c語(yǔ)言課程設(shè)計(jì)---學(xué)生成績(jī)管理(1)-資料下載頁(yè)

2025-01-16 02:55本頁(yè)面
  

【正文】 scanf(fp,%s%s%d%s,stu[i].num,stu[i].cla,amp。stu[i].math,amp。stu[i].name)。 } *n=i。 fclose(fp)。}void show(){struct student stu[N]。 int i,n。 reads(stu,amp。n)。/*從文件中讀出所有學(xué)生信息*/ printf( *****************所有的學(xué)生信息如下*****************)。 for(i=0。in。i++) printf(\n%s %s %d %s\n,stu[i].num,stu[i].cla,stu[i].math,stu[i].name)。 printf(\n)。 printf( 總?cè)藬?shù)為: )。 printf(%d\n,n)。 printf(\n\n)。}void average(){ struct student stu[N]。 int i,n,average,temp=0。 reads(stu,amp。n)。 for(i=0。in1。i++) temp=temp+stu[i].math。 average=temp/(n1)。 printf(\n)。 printf( 總平均分為: )。 printf(%d\n,average)。 printf(\n\n)。}void aver(){ struct student stu[N]。 char ban[N][10]。 int ava[N],ren[N],m=0,i,j,n。 reads(stu,amp。n)。 strcpy(ban[0],stu[0].cla)。 ren[0]=1。 ava[0]=stu[0].math。 i=n1。 while(i0) { for(int j=0。j=m。j++) { if(strcmp(ban[j],stu[i].cla)==0) { ava[j]+=stu[i].math。 ren[j]++。 i。 break。 } else if(j!=m) continue。 else { m++。 strcpy(ban[m],stu[i].cla)。 ren[m]=1。 ava[m]=stu[i].math。 i。 break。 } } } for(i=0。i=m。i++) { printf(班級(jí)%s 平均分%d\n,ban[i],ava[i]/ren[i])。 }}
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1