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

正文內(nèi)容

c程序設(shè)計(jì)基礎(chǔ)課程設(shè)計(jì)設(shè)計(jì)報(bào)告_鏈表建立學(xué)生成績(jī)管理系統(tǒng)-在線瀏覽

2024-09-17 15:13本頁(yè)面
  

【正文】 修改節(jié)點(diǎn)struct node *modify(struct node *h)即刪除和增加過成功地結(jié)合。while((strcmp(pnam,nam)!=0)amp。(pnext!=NULL)) p=pnext。分為A,B,C,D,E五個(gè)分?jǐn)?shù)段,若鏈表中的平均分滿足判斷條件,如if((pave=90)amp。(pave=100)),則該分?jǐn)?shù)段統(tǒng)計(jì)個(gè)數(shù)加一a[0]++。l 統(tǒng)計(jì)不及格率需要定義全局變量M,然后根據(jù)各科不及格的人數(shù)n計(jì)算出不及格率:“printf(The RATE of %cFailer:%.2f%c\n,c,(a[2]/(float)M)*100,37)。然后根據(jù)總分成績(jī)進(jìn)行排序。 struct node *sta_sor(struct node *h){ struct node *h1=NULL,*p,*a=NULL,*b,*c=NULL。 } //creat new link point //h1 : a,b,c。 //start to copyamp。if(c==NULL){h1 = b。 }else{ if(a == NULL amp。 bsum = csum) { bnext = c。// printf(2在最前面插入%d\n,bnum)。a=NULL。 continue。 c=anext。 break。 anext = b。 }a = c。 } while(c != NULL)。 a = NULL。 } return h1。在程序調(diào)試過程中,如果要對(duì)某個(gè)被調(diào)函數(shù)進(jìn)行調(diào)試,可以標(biāo)記該被調(diào)函數(shù)的某一句,之后按F10開始調(diào)試,如果不運(yùn)行為標(biāo)記的函數(shù),可直接按F5,進(jìn)行操作,進(jìn)入標(biāo)記過的函數(shù)之后,再逐句檢查錯(cuò)誤。 4. 軟件使用說(shuō)明打開程序進(jìn)入主界面,出現(xiàn)項(xiàng)目編號(hào),以及文字提示。在主界面輸入“1”單擊回車后即可進(jìn)入穿件數(shù)據(jù)表界面。結(jié)束輸入后,系統(tǒng)自動(dòng)返回學(xué)生信息數(shù)據(jù)表,并詢問存儲(chǔ)文件地址。界面與創(chuàng)建相似,都是按照用戶需求逐一輸入學(xué)生信息,信息輸入結(jié)束后,系統(tǒng)自動(dòng)返回學(xué)生信息數(shù)據(jù)表,并輸出到屏幕上。在主界面選擇項(xiàng)中,進(jìn)入刪除功能。程序自動(dòng)刪除后提示是否繼續(xù)刪除,否則,提示不存在,并詢問是否繼續(xù)刪除。查找信息功能,分四個(gè)模塊,分別是按學(xué)號(hào),姓名,學(xué)院,班級(jí)查找。根據(jù)用戶需要,分別包含平均分分?jǐn)?shù)段統(tǒng)計(jì),各科不及格率統(tǒng)計(jì),最高分學(xué)生信息查詢,以及按照總分排序等功能。5. 課程設(shè)計(jì)心得與體會(huì)本次程序設(shè)計(jì)最大的收獲主要有兩點(diǎn):。所謂關(guān)系型數(shù)據(jù)庫(kù),就是存放具體信息的二維數(shù)據(jù)表,該二維表的行稱為記錄,列稱為字段。聯(lián)系鏈表的實(shí)質(zhì)我們就可以發(fā)現(xiàn):其實(shí),一個(gè)鏈表就是一個(gè)數(shù)據(jù)表,鏈表中的每一個(gè)節(jié)點(diǎn)就是數(shù)據(jù)表中的記錄(對(duì)象),而鏈表的數(shù)據(jù)成員就是數(shù)據(jù)表記錄(對(duì)象)中對(duì)應(yīng)的字段(屬性)。 而鏈表的操作過程都是在內(nèi)存中完成的,不能存儲(chǔ)到磁盤中,因此,就產(chǎn)生了另外一種C語(yǔ)言的功能:文件讀寫。這樣,我們不難發(fā)現(xiàn),其實(shí),鏈表+文件讀寫就是簡(jiǎn)易的數(shù)據(jù)庫(kù)管理系統(tǒng)(DBMS)。因?yàn)椋挥惺炀氄莆真湵砗臀募x寫,才能更好地進(jìn)行數(shù)據(jù)挖掘,和數(shù)據(jù)開發(fā),才能對(duì)大量數(shù)據(jù)進(jìn)行高效率的處理。我們知道棧存儲(chǔ)區(qū)為靜態(tài)變量和形參分配內(nèi)存空間,而堆存儲(chǔ)區(qū)為函數(shù)動(dòng)態(tài)分配內(nèi)存。因此,程序員必須清楚指針?biāo)赶虻膬?nèi)存地址,否則會(huì)出現(xiàn)內(nèi)存錯(cuò)誤。因?yàn)?,指針是?lián)系程序和內(nèi)存的關(guān)鍵,進(jìn)行基礎(chǔ)的內(nèi)存操作時(shí),必須使用指針。指針是基礎(chǔ)操作,而基礎(chǔ)操作才是程序員的工作根本。因而,指針概念的保留是必然的。//amount of stustruct node{ int num。 char col[N]。 float math。 float clan。 float ave。}。 if(h==NULL) puts(Empty!)。 puts(The student39。 while(p!=NULL) { printf(%d\t%s\t%s\t%s\t%.2f\t%.2f\t%.2f\t%.2f\t%.2f\n,pnum,pnam,pcol,pcla,pmath,peng,pclan,psum,pave)。 } }}void list2(struct node *h){ struct node *p。 else { p=h。s Information:\nTotal\tNo.\tName\tCollege\tClass\tMath\tEnglish\tC_lan\tAve)。 p=pnext。 char c=39。 while(c==39。||c==39。) { puts(Input the student39。 p=(struct node *)malloc(L)。printf(M:%d\n,M)。pnum,amp。pcol,amp。pmath,amp。pclan,amp。pave)。 pnext=NULL。 sum=pmath + peng + pclan。 psum=sum。 if(h==NULL) h=p。 while((pnumqnum)amp。(qnext!=NULL)) { r=q。 } if(pnumqnum) { if(q==h) h=p。 pnext=q。 } puts(Continue CREAT or not?(y/n))。c)。 } return h。 char c=39。 while(c==39。||c==39。) { puts(Insert Information:\nNumber\tName\tCollege\tClass\tMath\tEnglish\tC_language)。M++。 scanf(%d%s%s%s%f%f%f,amp。pnam,amp。pcla,amp。peng,amp。psum,amp。 getchar()。 float sum,ave。 ave=sum/3。 pave=ave。 else { q=h。amp。 q=qnext。 else rnext=p。 } else qnext=p。 scanf(%c,amp。getchar()。}//delete the informationstruct node *del(struct node *h,int n){ struct node *p,*q。 while((pnum!=n)amp。(p!=NULL)) { q=p。 } if(pnum==n) { if(p==h) h=pnext。 free(p)。printf(M:%d\n,M)。 } else puts(Can39。 return h。 puts(Which student39。 scanf(%d,amp。getchar()。 h=insert(h)。}//search the information by numberstruct node *sea_num(struct node *h){ int n。s Number:)。n)。 struct node *p。 while((pnum!=n)amp。(pnext!=NULL)) p=pnext。 printf(%d\t%s\t%s\t%s\t%.2f\t%.2f\t%.2f\t%.2f\t%.2f\n,pnum,pnam,pcol,pcla,pmath,peng,pclan,psum,pave)。t Find the Student39。 return h。 char nam[N]。s Name:)。getchar()。 while((strcmp(pnam,nam)!=0)amp。(pnext!=NULL)) p=pnext。 printf(%d\t%s\t%s\t%s\t%.2f\t%.2f\t%.2f\t%.2f\t%.2f\n,pnum,pnam,pcol,pcla,pmath,peng,pclan,psum,pave)。t Find the Student39。 return h。 char nam[N]。s College:)。getchar()。 while((strcmp(pnam,nam)!=0)amp。(pnext!=NULL)) p=pnext。 printf(%d\t%s\t%s\t%s\t%.2f\t%.2f\t%.2f\t%.2f\t%.2f\n,pnum,pnam,pcol,pcla,p
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1