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

正文內(nèi)容

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

 

【正文】 的詳細(xì) 設(shè)計(jì) a) 創(chuàng)建學(xué)生信息鏈表 ? 函數(shù)原型 、 功能和形參說(shuō)明 1. 函數(shù)原型: student* creat( ) 2. 函數(shù)功能:創(chuàng)建基礎(chǔ)數(shù)據(jù)函數(shù),并帶回一個(gè)指向鏈表頭的指針 3. 參數(shù)說(shuō)明: student *head 鏈 表頭結(jié)點(diǎn)指針 4. 核心程序: student* creat( ) {nt i。 p1total=p1score[0]+p1score[1]+p1score[2]+p1score[3]。 n++。 return。 p=pnext。 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)。 } } d) 修改結(jié)點(diǎn)函數(shù) 函數(shù)原型、功能和形參說(shuō)明 : struct student *insert(struct student*head) :修改學(xué)生的信息 : student *head 核心程序: struct student *insert(struct student*head) struct student *p1,*p2,*p3。/*計(jì)算總分 */ 第 12 頁(yè) 共 21 頁(yè) p2=head。amp。head=p1。p1next=NULL。 printf(要?jiǎng)h除的學(xué)生準(zhǔn)考證號(hào)為 :%ld\n,num)。 while(num!=p1idamp。} if(num==p1id) {if(p1==head) head=p1next。} else printf(沒(méi)找到準(zhǔn)考證號(hào)為 %ld的學(xué)生 !\n,num)。km。km1。p[k]=p[j]。km。 arg4+=p1score[3]。arg3/=m。 } } 第 14 頁(yè) 共 21 頁(yè) ?? i) 查找 ? 函數(shù)原型 、 功能和形參說(shuō)明 函數(shù)原型 : struct student *find(struct student *head,long int num) ? 函數(shù)功能 : 根據(jù)用戶輸入的學(xué)生姓名進(jìn)行查 找,并將結(jié)果輸出 ? 參數(shù)說(shuō)明 : student *head, long int num ? 核心程序 : ?? ?? struct student *p1。} else{p1=head。} 6 系統(tǒng)測(cè)試 本學(xué)生信 息管理系統(tǒng) 能夠完成一定的應(yīng)用要求,不足的地方還有很多,如功能還不夠多,還是需要添加的, 系統(tǒng)有點(diǎn)寒酸,沒(méi)有設(shè)計(jì)好的界面,但是還是可以用的。以前只是看書,還不曾寫過(guò)代碼,這次要自己寫還真是有點(diǎn)難度,于是就去看書,不會(huì)在上網(wǎng)找資料,看看別人是怎么 寫的,然后在自己實(shí)實(shí)在在的編寫自己的程序。 在學(xué)習(xí)的過(guò)程中有讓我進(jìn)一步了解自己能力的不足,所以要及時(shí) 去學(xué)習(xí)自己需要的知識(shí), 要掌握一門語(yǔ)言是經(jīng)過(guò)多次實(shí)踐的,沒(méi)有一定的實(shí)戰(zhàn)演練,再厲害也只能是紙上談兵。 通過(guò)這次的課程設(shè)計(jì),我的編程能力得到了一定的提高,當(dāng)然調(diào)試程度的能力也相應(yīng)的提高,從中體會(huì)到:編程一定要細(xì)心,哪怕是一個(gè)小點(diǎn)和空格都可以決定你這個(gè)程度能不能運(yùn)行。 在編程的過(guò)程中,我體會(huì)到編程是十分辛苦的。在新的學(xué)期,我覺(jué)得自己要在以下幾個(gè)方面加以注意: 首先,在學(xué)習(xí)專業(yè)課的時(shí)候要注意理論聯(lián)系實(shí)際。在討論中解決問(wèn)題,會(huì)節(jié)約很多時(shí)間,并且在交流的過(guò)程中,我們也可以學(xué)到更多的東西。 long id。 struct student *next。 struct student *creat() {int i。 printf(請(qǐng)輸入學(xué)生考試信息 !\n)。 head=NULL。 scanf(%s,p1name)。 scanf(%ld,amp。p1score[0])。 printf(英語(yǔ)成績(jī) (0100):)。 scanf(%d,amp。 else p2next=p1。 return (head)。 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)。 } count(struct student *head) {if(head==NULL)return(0)。 p1=(struct student *)malloc(LEN)。 printf(姓名 :)。 printf(數(shù)據(jù)結(jié)構(gòu)成績(jī) :)。 scanf(%d,amp。p1score[2])。 p1total=p1score[0]+p1score[1]+p1score[2]+p1score[3]。} else {while((p1idp2id)amp。} if(p1id=p2id) 第 18 頁(yè) 共 21 頁(yè) {if(head==p2){p1next=head。} } else{p2next=p1。 } struct student *delete (struct student *head,long int num) {struct student *p1,*p2。} else{p1=head。p1=p1next。 n。 printf(要查找的學(xué)生準(zhǔn)考證號(hào)為 :%ld\n,num)。 while(num!=p1idamp。 printf(\n準(zhǔn)考證號(hào) 姓 名 性別 數(shù)據(jù)結(jié)構(gòu) 操作系統(tǒng) 英語(yǔ) C語(yǔ)言 平均分 總分 名次 \n)。 } else printf(沒(méi)找到準(zhǔn)考證號(hào)為 %ld的學(xué)生 !\n,num)。 m=count(head)。 printf(\n)。 for(k=0。} for(k=0。j++) if(p[k]totalp[j]total) {p2=p[k]。im。 } } dkarg(struct student *head) {struct student *p1。 第 20 頁(yè) 共 21 頁(yè) p1=head。 arg2+=p1score[1]。} arg1/=m。 printf( *全班單科成績(jī)平均分 *\n)。 } void main() {int k。 printf(|*|學(xué) 生 成 績(jī) 系 統(tǒng) 主 菜 單 界 面 |*|\n)。 printf(|*| |*|\n)。 printf(|*| |*|\n)。 printf(\n)。 switch(k) { case 1:head=creat()。printf(請(qǐng)按任意鍵顯示主菜單 !\n)。output(head)。 第 21 頁(yè) 共 21 頁(yè) case 4:printf(請(qǐng)輸入要?jiǎng)h除的準(zhǔn)考證號(hào) (8位 ):)。output(head)。 case 5:paixu(head)。getch()。i)。break
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1