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

正文內(nèi)容

c學(xué)生成績管理系統(tǒng)課程設(shè)計報告(編輯修改稿)

2025-02-13 10:33 本頁面
 

【文章內(nèi)容簡介】 \t\t各門課程平均成績表\n\n。 couttC++\t數(shù)學(xué)\t英語\n。 coutave_cpp/i39。\t39。ave_math/i39。\t39。 ave_eng/iendl。 }程序測試結(jié)果:,按照提示進(jìn)行選擇.2. 首先選擇1,:3. 按1鍵可以添加多個學(xué)生成績的數(shù)據(jù),按2返回主界面。4. 選擇5, 然后按Enter鍵,顯示剛才輸入的數(shù)據(jù)和排名的情況。5在主界面選擇2可以修改學(xué)生的數(shù)據(jù)。7. 在主界面選擇7可以按學(xué)號刪除學(xué)生的成績信息 三、 設(shè)計總結(jié)這次課程設(shè)計基本上涵蓋了學(xué)習(xí)到的C++ 語言知識點,課程設(shè)計題目要求不僅要求對課本雖然是網(wǎng)上搜來的代碼,但這些代碼沒辦法運行,我把這些代碼改了和增加了自己寫的代碼,終于可以運行,而且到達(dá)自己想要的結(jié)果,這次課程設(shè)計不僅讓我修補(bǔ)了以前學(xué)習(xí)的漏洞,也讓我知道一個道理:編程需要興趣和實際動手。C++語言程序設(shè)計課程設(shè)計,我從中受益匪淺,并且對C++語言程序設(shè)計這一門課程有了更深一步的認(rèn)識。附件程序源代碼清單:include include class Student{public: int Class,num。 char name[8]。 float cpp,math,eng,ave。 int order。 Student *next。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。num=n1。 strcpy(name,n)。 cpp=c2。math=m。eng=e2。ave=a。 order=o。 thisnext=next。 } friend int Valid(float score) { return (score0||score100) ?0:1。 } friend void SetOrder(Student*head) { int order=1。 while(head) {headorder=order++。head=headnext。} } friend Student* Insert(Student *head,Student *p) //在head所指的鏈表中降序插入結(jié)點p { Student*p1,*p2。 if(head==0) { head=p。pnext=0。 } else if(headave=pave) { pnext=head。head=p。 } else { p2=p1=head。 while(p2nextamp。amp。p2avepave) { p1=p2。p2=p2next。 } if(p2avepave) { p2next=p。pnext=0。 } else { pnext=p2。p1next=p。 } } return head。 } friend Student *Create(Student *head,istreamamp。 in) {int y。 Student *p。 int Class,num。 char name[8]。 float cpp,math,eng。 if(amp。in==amp。cin) //cout\n\n請輸入學(xué)生數(shù)據(jù)(輸入成績非法,則結(jié)束),數(shù)據(jù)輸入格式為:\n //班級 姓名 學(xué)號 C++ 數(shù)學(xué) 英語 \n。 //inClassnamenumcppmatheng。 //cout\n\n請輸入學(xué)生數(shù)據(jù):\n cout班級:endl。 inClass。 cout姓名:endl。 inname。 cout學(xué)號:endl。 innum。 coutC++的成績:endl。 incpp。 cout數(shù)學(xué)的成績:endl。 inmath。 cout英語的成績 :endl。 ineng。 /*while(Valid(elec)amp。amp。Valid(cpp)amp。amp。Valid(math)amp。amp。Valid(eng)amp。amp。Valid(sport)amp。amp。Valid(polity)) {*/p=new Student。 pClass=Class。pnum=num。strcpy(pname,name)。 pcpp=cpp。pmath=math。 peng=eng。 pave=(cpp+math+eng)/6。 head=I
點擊復(fù)制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1