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

正文內(nèi)容

c學(xué)生成績管理系統(tǒng)課程設(shè)計(jì)報(bào)告-wenkub

2023-04-07 00:21:14 本頁面
 

【正文】 if(y==2) { ShowMenu()。 //inClassnamenumeleccppmathengpolitysport。pmath=math。 pClass=Class。amp。amp。 ineng。 incpp。 inname。 //inClassnamenumcppmatheng。 float cpp,math,eng。 in) {int y。 order=o。 cpp=c2。 Student *next。2. 擴(kuò)展功能:學(xué)生數(shù)據(jù)的添加、修改、與刪除—R修改數(shù)據(jù)刪除數(shù)據(jù)查詢數(shù)據(jù)顯示數(shù)據(jù)平均數(shù)據(jù)添加數(shù)據(jù)學(xué)生成績管理系統(tǒng) 二、 過程與結(jié)果主要內(nèi)容如下:1. 關(guān)鍵類的設(shè)計(jì),繼承層次關(guān)系,代碼:首先,創(chuàng)建了一個(gè)student類. Student類的聲明如下:class Student{public: int Class,num。程序設(shè)計(jì)是一門實(shí)踐性很強(qiáng)的課程,必須十分重視實(shí)踐環(huán)節(jié)。掌握面向?qū)ο蟪绦蛟O(shè)計(jì)中有關(guān)類、對(duì)象、繼承、重載、多態(tài)性、輸入輸出流類體系、文件操作的基本概念,初步學(xué)會(huì)用類與對(duì)象這種面向?qū)ο蟮某绦蛟O(shè)計(jì)方法編寫應(yīng)用程序。培養(yǎng)使用面向?qū)ο蟮某绦蛟O(shè)計(jì)方法編寫計(jì)算機(jī)程序的能力。許多實(shí)際的知識(shí)不是靠聽課和看書學(xué)到的,而是通過長時(shí)間的實(shí)踐積累的。 char name[8]。public: Student() {} Student(int c1,int n1,char*n,float e1,float c2,float m,float e2,float s,float p,float a, int o,Student *next=NULL) { Class=c1。math=m。 thisnext=next。 Student *p。 if(amp。 //cout\n\n請(qǐng)輸入學(xué)生數(shù)據(jù):\n cout班級(jí):endl。 cout學(xué)號(hào):endl。 cout數(shù)學(xué)的成績:endl。 /*while(Valid(elec)amp。Valid(math)amp。Valid(sport)amp。pnum=num。 peng=eng。 cout\t\t*****繼續(xù)添加請(qǐng)按1*******\n。 } else{head=Create(head,cin)。amp。\t39。\t39。\t39。 } 。p2num!=num) p1=p2,p2=p2next。delete p2。 return head。head=headnext。p2num!=num) //尋找待修改的結(jié)點(diǎn) p1=p2,p2=p2next。 cinp2Class。 cinp2num。 cinp2math。 cinp2Classp2namep2nump2cppp2math p2eng。 head=Insert(head,p2)。 } : friend void OutputAll(const Student*head) //輸出所有學(xué)生的數(shù)據(jù) { if(!head) {cout\n\n\t\t沒有任何學(xué)生數(shù)據(jù)!\n\n。 while(head) { OutputOne(head)。 while(head) { ave_cpp+=headcpp。head=headnext。 couttC++\t數(shù)學(xué)\t英語\n。\t39。5在主界面選擇2可以修改學(xué)生的數(shù)據(jù)。 char name[8]。public: Student() {} Student(int c1,int n1,char*n,float e1,float c2,float m,float e2,float s,float p,float a, int o,Student *next=NULL) { Class=c1。math=m。 thisnext=next。head=headnext。 } else if(headave=pave) { pnext=head。amp。pnext=0。 } friend Student *Create(Student *head,istreamamp。 char name[8]。cin) //cout\n\n請(qǐng)輸入學(xué)生數(shù)據(jù)(輸入成績非法,則結(jié)束),數(shù)據(jù)輸入格式為:\n //班級(jí) 姓名 學(xué)號(hào) C++ 數(shù)學(xué) 英語 \n。 cout姓名:endl。 coutC++的成績:endl。 cout英語的成績 :endl。Valid(cpp)amp。Valid(eng)amp。Valid(polity)) {*/p=new Student。 pcpp=cpp。 head=Insert(head,p)。
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1