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

正文內(nèi)容

c語言課程設(shè)計(jì)報(bào)告書--學(xué)生成績管理-文庫吧

2025-01-02 11:26 本頁面


【正文】 hose the number:\n)define PRI printf(Sorry,the number you chose is error,please chose again\n)struct student \*定義一個(gè)結(jié)構(gòu)體*\{ int term。 \*學(xué)期*\ int class。 \*班級(jí)*\ char name[20]。 \*姓名*\ int score_1。 \*科目一*\ int score_2。 \*科目二*\ int score_3。 \*科目三*\ float ave。 \*平均分*\ int sum。 \*總分*\ struct student *next。}。int n。struct student *creat(void) \*創(chuàng)建信息鏈表*\{ struct student *head。 struct student *p1,*p2。 n=0。 p1=p2=(struct student *)malloc(LEN)。 printf(Please input the student information:\n)。 printf(Term Class Name Score_1 Score_2 Score_3\n)。 scanf(%d%d%s%d%d%d,amp。p1term,amp。p1class,p1name,amp。p1score_1,amp。p1score_2,amp。p1score_3)。 head=NULL。 while(p1term!=0) { n=n+1。 if(n==1) head=p1。 else p2next=p1。 p2=p1。 p1=(struct student *) malloc(LEN)。 scanf(%d%d%s%d%d%d,amp。p1term,amp。p1class,p1name,amp。p1score_1,amp。p1score_2,amp。p1score_3)。 } p2next=NULL。 return(head)。}void sort(struct student *p,int f) \*排序(形參為鏈表的頭指針和想要排序的班級(jí))*\{ int a,b,c,e。 float d。 char z[20]。 struct student *r,*s。 while(f!=pclass) \*判斷是否是想要排序的班級(jí)*\ p=pnext。 for(r=p。f==pclassamp。amp。r。r=rnext) for(s=p。snextamp。amp。f==snextclass。s=snext) if(save(snext)ave) { \*交換結(jié)構(gòu)體各個(gè)成員*\ d=save。 save=snextave。 snextave=d。 a=sscore_1。 sscore_1=snextscore_1。 snextscore_1=a。 b=sscore_2。 sscore_2=snextscore_2。 snextscore_2=b。 c=sscore_3。 sscore_3=snextscore_3。 snextscore_3=c。 e=ssum。 ssum=snextsum。 snextsum=e。 strcpy(z,sname)。 strcpy(sname,snextname)。 st
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1