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

正文內(nèi)容

大學(xué)c課程設(shè)計(jì)報(bào)告--學(xué)生成績(jī)管理系統(tǒng)(附源代碼-在線瀏覽

2024-09-19 15:16本頁(yè)面
  

【正文】 ):next(NULL){ number=Number。 puter=Computer。 math=Math。 ave=Ave。}void student::sum_score()///////////////////////計(jì)算總成績(jī){sum=puter+English+math。}void student::grade_score()///////////////////計(jì)算成績(jī)等級(jí){ int i。 switch(i/10) { case 10: grade=39。 break。A39。 case 8: grade=39。 break。C39。 case 6: grade=39。 break。E39。 curnode=curnodenext。 curnode=headnext。 delete curnode。 } headnext=NULL。 cout┏━━━━━━━━━━━━━━━━━━━┓endl。 cout┗━━━━━━━━━━━━━━━━━━━┛endl。system(pause)。 cout┃ !這是一個(gè)空表! ┃endl。 cout 。 return。 curnode=headnext。 cout┃ 學(xué)號(hào) ┃ 姓名 ┃計(jì)算機(jī)┃ 英語(yǔ) ┃ 數(shù)學(xué) ┃ 總分 ┃ 平均分 ┃等級(jí)┃endl。 while(curnode!=NULL) { cout┃leftsetw(10)curnodenumber。 cout┃leftsetw(6)curnodeputer。 cout┃leftsetw(6)curnodemath。 cout┃leftsetw(8)curnodesum。 cout┃leftsetw(8)curnodeave。 cout┃leftsetw(4)curnodegrade┃endl。 else cout┗━━━━━┻━━━━━┻━━━┻━━━┻━━━┻━━━━┻━━━━┻━━┛endl。 } curnode=pw。 cout┃!表中內(nèi)容輸出完畢!┃endl。 cout 。}////////////////////////////////////////輸入數(shù)據(jù)void student::cin_app(){ student *p=curnode。 string Number。 double Computer。 double Math。 cinNumber。 while(curnode!=NULL) { b=(Number==curnodenumber)。 } if(!b) break。 cout┃出現(xiàn)了相同的學(xué)號(hào),請(qǐng)重新輸入┃endl。 } } curnode=p。 cinName。 cinComputer。 cout 計(jì)算機(jī):。 } if(Computer=0amp。Computer=100) break。 } while(1) { cout 英 語(yǔ):。 while(()) { err_char()。 cinENglish。amp。 else score_err()。 cinMath。 cout 數(shù) 學(xué):。 } if(Math=0amp。Math=100) break。 } thisapp_score(Number,Name,Computer,ENglish,Math)。 cout┃!已添加一條記錄!┃endl。 cout 。}//////////////////////////////////////////查找函數(shù)的實(shí)現(xiàn)void student::lookup(int n,string str){ student *p=curnode。 //定義i=1, int i=1。 cout┃!這是一個(gè)空表!┃endl。 curnode=p。system(pause)。 } cout┏━━━━━┳━━━━━┳━━━┳━━━┳━━━┳━━━━┳━━━━┳━━┓endl。 cout┣━━━━━╋━━━━━╋━━━╋━━━╋━━━╋━━━━╋━━━━╋━━┫endl。break。break。 } if(b) { i=0。 cout┃leftsetw(10)curnodename。 cout┃leftsetw(6)curnodeEnglish。 curnodesum_score()。 curnodeave_score()。 curnodegrade_score()。 cout┣━━━━━╋━━━━━╋━━━╋━━━╋━━━╋━━━━╋━━━━╋━━┫endl。 } //當(dāng)i=1是代表沒有找到數(shù)據(jù) if(i) { cout┣━━━━━┻━━━━━┻━━━┻━━━┻━━━┻━━━━┻━━━━┻━━┫endl。 cout┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛endl。 curnode=p。 cout 。}//////////////////////////////////////////刪除函數(shù)的實(shí)現(xiàn)void student::del_score(int n,string str){ student *p=curnode,*pw=head。 //定義i=1, int i=1。 cout┃!這是一個(gè)空表!┃endl。 curnode=p。system(pause)。 } while(curnode!=NULL) { switch(n) { case 1: b=curnodenumber==str。 case 2: b=curnodename==str。 default: return。 pwnext=curnodenext。 curnode=pwnext。 curnode=curnodenext。 cout┃沒有匹配的數(shù)據(jù)┃endl。 } else { cout┏━━━━━━━┓endl。 cout┗━━━━━━━┛endl。 while(curnodenext) { curnode=curnodenext。system(pause)。 cout┃!這是一個(gè)空表不能排序!┃endl。 cout 。 return。 cout┃!只有一條記錄不用排序!┃endl。 cout 。 return。 r=head。 q=s。 while(s!=NULL) { while(p!=NULL) { switch(n) { case 1: { if(m==1) { while(snumberpnumber) { qnext=pnext。 pnext=s。 p=qnext。 } } else { while(snumberpnumber) { qnext=pnext。 pnext=s。 p=qnext。 } } break。 rnext=p。 s=p。 if(p==NULL) break。 rnext=p。 s=p。 if(p==NULL) break。 } case 3: { if(m==1) { while(savepave) {
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1