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

正文內(nèi)容

c語言學(xué)生信息管理系統(tǒng)項(xiàng)目實(shí)訓(xùn)文檔-閱讀頁

2025-01-05 15:02本頁面
  

【正文】 scanf(%s,p1sex)。 scanf(%ld,amp。 printf(數(shù)據(jù)結(jié)構(gòu)成績 (0100):)。p1score[0])。 scanf(%d,amp。 printf(英語成績 (0100):)。p1score[2])。 scanf(%d,amp。 p1total=p1score[0]+p1score[1]+p1score[2]+p1score[3]。 else p2next=p1。 n++。 return (head)。 第 17 頁 共 21 頁 printf(\n)。 printf(\n)。 printf(\n)。 if(head!=NULL) do{printf(%8ld %6s %4s %2d %2d %2d %2d % %3d\n,pid,pname,psex,pscore[0],pscore[1],pscore[2],pscore[3],ptotal/,ptotal)。 p=pnext。 } count(struct student *head) {if(head==NULL)return(0)。 } struct student *insert(struct student*head) {struct student *p1,*p2,*p3。 p1=(struct student *)malloc(LEN)。 scanf(%ld,amp。 printf(姓名 :)。 printf(性別 :)。 printf(數(shù)據(jù)結(jié)構(gòu)成績 :)。p1score[0])。 scanf(%d,amp。 printf(英語成績 :)。p1score[2])。 scanf(%d,amp。 p1total=p1score[0]+p1score[1]+p1score[2]+p1score[3]。 if(head==NULL) {head=p1。} else {while((p1idp2id)amp。(p2next!=NULL)) {p3=p2。} if(p1id=p2id) 第 18 頁 共 21 頁 {if(head==p2){p1next=head。} else {p3next=p1。} } else{p2next=p1。} } n++。 } struct student *delete (struct student *head,long int num) {struct student *p1,*p2。 if(head==NULL) {printf(這是一個(gè)空表 ,沒有可刪除的學(xué)生準(zhǔn)考證號 !\n)。} else{p1=head。amp。p1=p1next。 else p2next=p1next。 n。 return(head)。 printf(要查找的學(xué)生準(zhǔn)考證號為 :%ld\n,num)。return(head)。 while(num!=p1idamp。p1next!=NULL) {p1=p1next。 printf(\n準(zhǔn)考證號 姓 名 性別 數(shù)據(jù)結(jié)構(gòu) 操作系統(tǒng) 英語 C語言 平均分 總分 名次 \n)。 printf(%8ld %6s %4s %2d %2d %2d %2d % %3d %2d\n,p1id,p1name,p1sex,p1score[0],p1score[1],p1score[2],p1score[3],p1total/,p1total,p1m_c)。 } else printf(沒找到準(zhǔn)考證號為 %ld的學(xué)生 !\n,num)。 } } paixu(struct student *head) {int i,k,m,j。 m=count(head)。} else {printf(\n)。 printf(\n)。 printf(\n)。 for(k=0。k++) {p[k]=p1。} for(k=0。k++) for(j=k+1。j++) if(p[k]totalp[j]total) {p2=p[k]。p[j]=p2。im。 printf(\n)。 } } dkarg(struct student *head) {struct student *p1。 float arg1=0,arg2=0,arg3=0,arg4=0。 第 20 頁 共 21 頁 p1=head。km。 arg2+=p1score[1]。 arg4+=p1score[3]。} arg1/=m。arg3/=m。 printf( *全班單科成績平均分 *\n)。 printf(數(shù)據(jù)結(jié)構(gòu)平均分 :%.2f 操作系統(tǒng)平均分 :%.2f 英語平均分 :%.2f C語言平均分 :%.2f \n,arg1,arg2,arg3,arg4)。 } void main() {int k。 long i。 printf(|*|學(xué) 生 成 績 系 統(tǒng) 主 菜 單 界 面 |*|\n)。 printf(|*| |*|\n)。 printf(|*| |*|\n)。 printf(|*| |*|\n)。 printf(|*| |*|\n)。 printf(\n\n|*| 學(xué)生成績管理程序 設(shè)計(jì)者:劉雁璋 |*|\n)。 printf(\n)。 scanf(%d,amp。 switch(k) { case 1:head=creat()。 case 2:output(head)。printf(請按任意鍵顯示主菜單 !\n)。break。output(head)。getch()。 第 21 頁 共 21 頁 case 4:printf(請輸入要刪除的準(zhǔn)考證號 (8位 ):)。i)。output(head)。getch()。 case 5:paixu(head)。printf(參加考試的學(xué)生人數(shù)為 :%d人\n,count(head))。getch()。 case 6:printf(請輸入要查找的準(zhǔn)考證號 (8位 ):)。i)。printf(請按任意鍵顯示主菜單 !\n)。break。 } }while(k!=7)
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1