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

正文內(nèi)容

c學生成績管理系統(tǒng)課程設計報告-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. 擴展功能:學生數(shù)據(jù)的添加、修改、與刪除—R修改數(shù)據(jù)刪除數(shù)據(jù)查詢數(shù)據(jù)顯示數(shù)據(jù)平均數(shù)據(jù)添加數(shù)據(jù)學生成績管理系統(tǒng) 二、 過程與結(jié)果主要內(nèi)容如下:1. 關鍵類的設計,繼承層次關系,代碼:首先,創(chuàng)建了一個student類. Student類的聲明如下:class Student{public: int Class,num。程序設計是一門實踐性很強的課程,必須十分重視實踐環(huán)節(jié)。掌握面向?qū)ο蟪绦蛟O計中有關類、對象、繼承、重載、多態(tài)性、輸入輸出流類體系、文件操作的基本概念,初步學會用類與對象這種面向?qū)ο蟮某绦蛟O計方法編寫應用程序。培養(yǎng)使用面向?qū)ο蟮某绦蛟O計方法編寫計算機程序的能力。許多實際的知識不是靠聽課和看書學到的,而是通過長時間的實踐積累的。 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請輸入學生數(shù)據(jù):\n cout班級:endl。 cout學號:endl。 cout數(shù)學的成績:endl。 /*while(Valid(elec)amp。Valid(math)amp。Valid(sport)amp。pnum=num。 peng=eng。 cout\t\t*****繼續(xù)添加請按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é)點 p1=p2,p2=p2next。 cinp2Class。 cinp2num。 cinp2math。 cinp2Classp2namep2nump2cppp2math p2eng。 head=Insert(head,p2)。 } : friend void OutputAll(const Student*head) //輸出所有學生的數(shù)據(jù) { if(!head) {cout\n\n\t\t沒有任何學生數(shù)據(jù)!\n\n。 while(head) { OutputOne(head)。 while(head) { ave_cpp+=headcpp。head=headnext。 couttC++\t數(shù)學\t英語\n。\t39。5在主界面選擇2可以修改學生的數(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請輸入學生數(shù)據(jù)(輸入成績非法,則結(jié)束),數(shù)據(jù)輸入格式為:\n //班級 姓名 學號 C++ 數(shù)學 英語 \n。 cout姓名:endl。 coutC++的成績:endl。 cout英語的成績 :endl。Valid(cpp)amp。Valid(eng)amp。Valid(polity)) {*/p=new Student。 pcpp=cpp。 head=Insert(head,p)。
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1