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

正文內(nèi)容

c語言學生信息管理系統(tǒng)報告-資料下載頁

2024-12-16 15:02本頁面

【導(dǎo)讀】{ "error_code": 17, "error_msg": "Open api daily request limit reached" }

  

【正文】 deleted:)。 scanf(%s,amp。)。 //讀入學號,據(jù)學號進行刪除 head=Delete(head,data)。 break。 case 3: readNode(amp。data)。 //讀入一條學生記錄 p=SearchNode(head,data,1)。//查找該學號的學生是否存在 if(p) pdata=data。 //若該生學號存在,則修改其信息 37 else printf(this student is not in\n)。//否則顯示此人不存在 break。 case 0: break。 default:printf(error input,please input your choice again!\n)。 scanf(%d,amp。choice)。 } }while(choice)。 //還是回到二級菜單允許再次選擇二級功能 return head。 } struct node *rankCalculate(struct node *head) //根據(jù)總分求名次,通過建臨時鏈表的方式實現(xiàn) { struct node*head2=NULL,*p,*q。 int count=0,current=0。 //count 統(tǒng)計學生總?cè)藬?shù),即單鏈表的結(jié)點個數(shù) for(p=head。p。p=pnext,count++)//head 鏈是按學號排序的,逐個讀出學生記錄 head2=InsertOrder(head2,pdata,2)。 //依次將學生記錄依總分由低到高建鏈表 head2 rankprintHead()。 for(p=head2。p。p=pnext) //再依次訪問 head2 鏈中的結(jié)點 { current++。 //每掃描到一個結(jié)點計算器 current 加 1 q=SearchNode(head,pdata,1)。//對 head2 中當前結(jié)點依學號在 head 鏈中找到 (qdata).rank=countcurrent+1。 //對 head 鏈中名次進行修改 rankprintNode(pdata)。 //輸出記錄 //printf(學生名次: %d\n\n,(qdata).rank)。 printf(\n\n)。 } return head。 } 38 void averMark(struct node*head) { struct node *p。 int i。 averprintHead()。 //輸出表頭 for(p=head。p。p=pnext) { double m=0。 for(i=0。i3。i++) m+=(pdata).score[i]。 (pdata).aver=m/。 averprintNode(pdata)。// 輸出記錄 //printf( 學生名次: %d\n\n,(qdata).rank)。 printf(\n)。 } printf(\n\n)。 } void average(struct node *head,double *aver) //實現(xiàn)查詢各門課程的平均分數(shù) { struct node *p。 int i,count=0。 for(p=head。p。p=pnext) { count++。 //count 用來統(tǒng)計總?cè)藬?shù) for(i=0。i3。i++) aver[i]+=(pdata).score[i]。 //aver[i]中存放的是某門課的和 } 39 for(i=0。i3。i++) aver[i]/=count。 //利用前面得到的總分和總?cè)藬?shù)求平均分 printf(the average score of each course:\n)。 for(i=0。i3。i++) // 輸出各門課程的平均分數(shù) printf(%,aver[i])。 printf(\n\n)。 } struct node * scoreManage(struct node *head) //學生成績管理模塊的實現(xiàn) { int choice,i。 int high[3]={0,0,0},low[3]={100,100,100}。 double aver[3]={0}。 struct node*p。 do //用 do~while 語句可多次選擇二級菜單 { menuScore()。 //調(diào)用二級菜單顯示函數(shù) printf(choose one operation you want to do:)。 scanf(%d,amp。choice)。 //輸入選擇項 printf(\n)。 switch(choice) { case 1: //求每個學生的總分 printHead()。 for(p=head。p。p=pnext) { (pdata).total=0。 for(i=0。i3。i++) (pdata).total+=(pdata).score[i]。 printNode(pdata )。 40 printf(\n\n)。 } break。 case 2:rankCalculate(head)。 //調(diào)用 rankcalculate 函數(shù)計算名次 break。 case 3:averMark(head)。 //求三門課程平均分 break。 case 4:average(head,aver)。 //實現(xiàn)查詢各門課程的平均分數(shù) break。 case 0: break。 default:printf(error input,please input your choice again!\n)。 scanf(%d,amp。choice)。 } }while(choice)。 //還是回到二級菜單允許再次選擇二級功能 return head。 } struct node *numberSort(struct node *head) { struct node*head2=NULL,*p,*q。 int count=0,current=0。 for(p=head。p。p=pnext,count++)//head 鏈是按學號排序的,逐個讀出學生記錄 head2=InsertOrder(head2,pdata,2)。 //依次將學生記錄依總分由低到高建鏈表 head2 printHead()。 for(p=head2。p。p=pnext) { current++。 //每掃描到一個結(jié)點計算器 current 加 1 q=SearchNode(head,pdata,1)。//對 head2 中當前結(jié)點依學號在 head 鏈中找到 (qdata).rank=countcurrent+1。 //對 head 鏈中名次進行修改 41 printNode(pdata)。 printf(\n\n)。 } return head。 } struct node *nameSort(struct node *head) { struct node*head2=NULL,*p,*q。 int count=0,current=0。 for(p=head。p。p=pnext,count++)//head 鏈是按學號排序的,逐個讀出學生記錄 head2=InsertOrder(head2,pdata,2)。 //依次將學生記錄依總分由低到高建鏈表 head2 printHead()。 for(p=head2。p。p=pnext) { current++。 //每掃描到一個結(jié)點計算器 current 加 1 q=SearchNode(head,pdata,1)。//對 head2 中當前結(jié)點依學號在 head 鏈中找到 (qdata).rank=countcurrent+1。 //對 head 鏈中名次進行修改 printNode(pdata)。 printf(\n\n)。 } return head。 } struct node *AscoreSort(struct node *head) { struct node*head2=NULL,*p,*q。 int count=0,current=0。 for(p=head。p。p=pnext,count++)//head 鏈是按學號排序的,逐個讀出學生記錄 42 head2=InsertOrder(head2,pdata,2)。 //依次將學生記錄依總分由低到高建鏈表 head2 printHead()。 for(p=head2。p。p=pnext) { current++。 //每掃描到一個結(jié)點計算器 current 加 1 q=SearchNode(head,pdata,1)。//對 head2 中當前結(jié)點依學號在 head 鏈中找到 (qdata).rank=countcurrent+1。 //對 head 鏈中名次進行修改 printNode(pdata)。 printf(\n\n)。 } return head。 } struct node *BscoreSort(struct node *head) { struct node*head2=NULL,*p,*q。 int count=0,current=0。 for(p=head。p。p=pnext,count++)//head 鏈 是按學號排序的,逐個讀出學生記錄 head2=InsertOrder(head2,pdata,2)。 //依次將學生記錄依總分由低到高建鏈表 head2 printHead()。 for(p=head2。p。p=pnext) { current++。 //每掃描到一個結(jié)點計算器 current 加 1 q=SearchNode(head,pdata,1)。//對 head2 中當前結(jié)點依學號在 head 鏈中找到 (qdata).rank=countcurrent+1。 //對 head鏈中名次進行修改 printNode(pdata)。 printf(\n\n)。 } 43 return head。 } struct node *CscoreSort(struct node *head) { struct node*head2=NULL,*p,*q。 int count=0,current=0。 for(p=head。p。p=pnext,count++)//head 鏈是按學號排序的,逐個讀出學生記錄 head2=InsertOrder(head2,pdata,2)。 //依次將學生記錄依總分由低到高建鏈表 head2 printHead()。 for(p=head2。p。p=pnext) { current++。 //每掃描到一個結(jié)點計算器 current 加 1 q=SearchNode(head,pdata,1)。//對 head2 中當前結(jié)點依學號在 head 鏈中找到 (qdata).rank=countcurrent+1。 //對 head 鏈中名次進行修改 printNode(pdata)。 printf(\n\n)。 } return head。 } struct node * sortManage(struct node *head) //根據(jù)條件排序模塊的實現(xiàn) { int choice。 do //用 do~while 語句可多次選擇二級菜單 { menuSort()。
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1