歡迎來到裝配圖網(wǎng)! | 幫助中心 裝配圖網(wǎng)zhuangpeitu.com!
裝配圖網(wǎng)
ImageVerifierCode 換一換
首頁 裝配圖網(wǎng) > 資源分類 > DOC文檔下載  

《C++程序設計》課程設計報告

  • 資源ID:28409368       資源大?。?span id="l0qt0zn" class="font-tahoma">440.55KB        全文頁數(shù):30頁
  • 資源格式: DOC        下載積分:10積分
快捷下載 游客一鍵下載
會員登錄下載
微信登錄下載
三方登錄下載: 微信開放平臺登錄 支付寶登錄   QQ登錄   微博登錄  
二維碼
微信掃一掃登錄
下載資源需要10積分
郵箱/手機:
溫馨提示:
用戶名和密碼都是您填寫的郵箱或者手機號,方便查詢和重復下載(系統(tǒng)自動生成)
支付方式: 支付寶    微信支付   
驗證碼:   換一換

 
賬號:
密碼:
驗證碼:   換一換
  忘記密碼?
    
友情提示
2、PDF文件下載后,可能會被瀏覽器默認打開,此種情況可以點擊瀏覽器菜單,保存網(wǎng)頁到桌面,就可以正常下載了。
3、本站不支持迅雷下載,請使用電腦自帶的IE瀏覽器,或者360瀏覽器、谷歌瀏覽器下載即可。
4、本站資源下載后的文檔和圖紙-無水印,預覽文檔經過壓縮,下載后原文更清晰。
5、試題試卷類文檔,如果標題沒有明確說明有答案則都視為沒有答案,請知曉。

《C++程序設計》課程設計報告

C+程序設計課程設計報告題 目: 學生學籍管理系統(tǒng) 學 院:計算機科學與工程學院 專 業(yè):計算機科學與技術 學生姓名: 學 號: 指導教師: 2012年 06 月 20 日目 錄10.學生學籍管理系統(tǒng) II1.前言 12.需求分析13.概要設計 14.詳細設計15.測試16.總結2附錄21. 前言 題目:學生學籍信息管理系統(tǒng)1 前言21世紀隨著計算機技術的不斷成熟,帶來了信息技術的高速發(fā)展。信息技術的發(fā)展極大地推動了整個社會信息化的進程。在日益龐大的信息管理領域,信息管理自動化直接地改變了傳統(tǒng)的文檔管理方式,極大地提高了工作效率和管理水平。 2. 需求分析鑒于高等院校在校學生、教職員工、日常事務處理信息數(shù)據(jù)的繁多,學校信息管理部門通常感到無法高效的進行管理。就高等院校學生學籍管理這一方面,由于院校學生人數(shù)眾多,專業(yè)不同,學校所安排的教學計劃也就因人而異。這對于管理學生學籍信息的教務老師來說,無疑是一項龐大和復雜的工作。不僅要考慮學校對某一專業(yè)整體的教學計劃安排,也要對各專業(yè)相關老師的教學任務進行統(tǒng)一協(xié)調,還要考慮某些學生的特別學籍變化。為解決學校上述的學生學籍管理難題,提高教務老師的信息管理效率,以及為了方便學生更好、更便捷的查看自己的學籍信息;讓老師的教學工作更加順利和對教學信息的及時掌握。本系統(tǒng)特參照一般高等院校對在校學生課程選修的數(shù)據(jù)庫管理辦法,結合實踐,設計出學生,教師和管理員三大功能模塊,根據(jù)賦予系統(tǒng)權限不同,分別對系統(tǒng)進行相關操作,方便了學生、教師對學籍信息的查看,同時,也大大減少了管理員的信息管理工作量,提高了系統(tǒng)效率。3 概要設計1)、通過對高等院校管理學生學籍的管理模式和步驟流程,設計出系統(tǒng)的總體結構和各主要功能模塊。2)、了解面向對象語言的編程風格,以及數(shù)據(jù)庫對數(shù)據(jù)信息處理的特點,確定好系統(tǒng)的設計語言和數(shù)據(jù)庫平臺。3)、及時與學校管理信息老師和課程設計指導老師溝通,進一步熟悉學生學籍信息管理系統(tǒng)的數(shù)據(jù)流程、數(shù)據(jù)處理以及操作步驟。提出自己的設計想法,征求老師意見,改正不合理的地方,為下面的概念設計和詳細設計奠定基礎。3.1 概要設計階段總體結構設計1)、確定系統(tǒng)的總體結構以及子結構:系統(tǒng)根據(jù)用戶模式的不同,實現(xiàn)不同的系統(tǒng)功能。系統(tǒng)功能層次圖如下:1.登記學生信息登錄學生信息系統(tǒng)學生學籍管理系統(tǒng)6.退出3.查找學生信息2.刪除學生信息5.按要求輸出信息4.修改學生信息退出系統(tǒng)保存信息學生信息管理(選擇操作)3.2 概要設計階段成果系統(tǒng)登錄界面信息修改編輯界面信息瀏覽界面信息保存退出界面 4詳細設計4.1 界面設計系統(tǒng)開始運行后自動從當前目錄下的xueshen文件中讀取信息,并實時顯示信息的讀取情況。用戶登錄系統(tǒng)主界面,輸入用戶名和密碼,。系統(tǒng)對用戶進行安全驗證,若通過,則跳轉到相應操作界面;若失敗,則提示相應錯誤信息。系統(tǒng)主界面如下圖所示,各功能模塊前面都標注了編碼 ,用戶只要輸入相應的編碼就可以選擇相應的功能模塊,方便了各層次用戶對系統(tǒng)的功能操作。同時界面中也顯示了整體的結構圖,以便用戶對系統(tǒng)的整個功能結構有著清晰的認識。在用戶選擇每一個具體的功能模塊后,系統(tǒng)都會提示用戶做出相應的操作,并根據(jù)用戶的指令反饋相應的信息處理結果。另外在顯示新的菜單時,都會將之前的內容清空,使系統(tǒng)的操作界面簡潔,提高用戶使用系統(tǒng)的效率。圖1功能描述: 圖1為學生學籍管理系統(tǒng)操作界面 選擇1:進入學生信息登記界面,可查看學生的學籍信息,對信息進行添 加 選擇2:進入學生信息刪除界面,輸入學生學號,進行學生信息刪除功 提示。 選擇3:進入學生信息查找界面,錄入學生學號,對學生的相關信息進行查找。 選擇4:進入學生信息修改界面,錄入要修改的學生編號,選擇要修改的信息,輸入新信息。 選擇5:按要求輸出學生信息界面,輸入要輸出的學生信息進行相同信 息學生的統(tǒng)計輸出。 選擇6:退出操作界面,退出系統(tǒng)操作。圖2功能描述: 圖2為是否進行操作界面 選擇Y:返回學生學籍管理系統(tǒng)操作界面 選擇N:退出操作界面圖3 功能描述: 圖3為信息保存界面。 選擇Y:進行信息保存退出系統(tǒng) 選擇N:不保存信息退出系統(tǒng)4.2 編碼。 1)頭文件代碼/MyStudent.h#ifndef MYSTUDENT_H_#define MYSTUDENT_H_#include<iostream>#include<string>using namespace std; class Student public: double Num;string Name;string Sex;int Age;string Jiguan;string Xibie;string Zuanye;string Class;string bianhua;Student *next;#endif/MyLIST.h#include<iostream>#include<string>#include<fstream>#include"MyStudent.h"using namespace std; class LIST private: public: Student *head; LIST() head=new Student;head->next=NULL;int length(); bool isempty() return head->next=NULL?true:false;bool get_data(int i,Student &x); bool get_succ(int i,Student &x); bool get_prior(int i,Student &x); /取前驅元素函數(shù) bool replace_data(double i); /置換元素bool insert_data(Student data,int i); /插入元素函數(shù)bool delete_data(double i); /刪除元素函數(shù)bool find_data(double i,Student &result); void tongji(Student x);/查找函數(shù) void print_list(); void shuchu(); LIST() /析構函數(shù)Student *p;while(head) /將鏈表中所有元素占用空間釋放p = head;head = head->next;delete p; ;#endif/Myvoid.h#include<iostream>#include"MyLIST.h"#include"MyStudent.h"void In( int i,Student chuandi) double Num;string Name;string Sex;int Age;string Jiguan;string Xibie;string Zuanye;string Class;string bianhua;ifstream in("xuesheng");if(!in)cout<<"不能打開!"<<endl;for(int j=1;j<=i;j+)in>>Num>>Name >>Sex >>Age>>Jiguan >>Xibie >>Zuanye>>Class>>bianhua ;in.close ;chuandij.Num =Num;chuandij.Name =Name; chuandij.Sex =Sex;chuandij.Age =Age;chuandij.Jiguan =Jiguan;chuandij.Xibie =Xibie;chuandij.Zuanye =Zuanye;chuandij.Class =Class;chuandij.bianhua =bianhua;void changdu(LIST lis)ofstream out("len");out<<lis.length ();out.close;int len()int i;ifstream in("len");in>>i;return i;void output()cout<<endl<<endl<<endl<<endl<<endl<<" *"<<endl <<" * *"<<endl <<" * 學生學籍管理系統(tǒng) *"<<endl <<" * *"<<endl<<" * 1.登記學生信息 *"<<endl<<" * 2.刪除學生信息 *"<<endl<<" * 3.查找學生信息 *"<<endl<<" * 4.修改學生信息 *"<<endl<<" * 5.按要求輸出籍貫表 *"<<endl<<" * 6.退出操作選擇 *"<<endl <<" * *"<<endl <<" * *"<<endl <<" *"<<endl;cout<<endl<<endl<<" 請選擇需要的功能<1-6>:"void baochun()cout<<endl<<endl<<endl<<endl<<endl<<endl;cout<<" #"<<endl<<" # #"<<endl <<" # 是否保存修改信息? #"<<endl<<" # 是輸入Y, #"<<endl<<" # 退出輸入N #"<<endl <<" # #"<<endl<<" #"<<endl;cout<<"輸入您的選擇:"void jixu() cout<<endl<<endl<<endl<<endl<<endl<<endl;cout<<" #"<<endl<<" # #"<<endl <<" # 是否繼續(xù)操作? #"<<endl<<" # 是輸入Y, #"<<endl<<" # 退出輸入N #"<<endl <<" # #"<<endl<<" #"<<endl;cout<<"輸入您的選擇:"#endif5. 測試創(chuàng)建數(shù)據(jù)庫,建立好相應的數(shù)據(jù)表,插入系統(tǒng)用戶、學生、課程等數(shù)據(jù)信息,進行系統(tǒng)測試與調試。5.1創(chuàng)建系統(tǒng)測試數(shù)據(jù)學號 姓名 性別年齡 籍貫 系別 專業(yè) 班級 學籍變化11003 小虎 男 21 廣西 計算機 軟件 102 入學09002 小華 女 23 湖北 機電 制作 301 畢業(yè)10004 小東 男 22 湖南 材料 開發(fā) 501 轉專業(yè)6.總結課程設計總結:學習C+課程兩個學期,現(xiàn)在剛剛學完,學校安排大一下學期做面向對象語言程序設計。知識的掌握和了解還不是很到位,應用起來不靈活,拿起書本不斷的翻看查找,復習一下所學的知識,開始在腦海中醞釀要做一個什么樣的系統(tǒng)。經過一周的努力,算是完成了任務吧。馬上進入大二了,還沒有完全鞏固學習過的知識,所以只能每天白天查閱資料,基本上都是晚上敲一些代碼,所以會有許多不足之處,也遇到了不少問題。例如:在測試連接數(shù)據(jù)庫時,對學生信息的更新總是失敗。我對程序執(zhí)行過程進行了細致分析,沒有發(fā)現(xiàn)任何邏輯上的問題,于是我在所有的地方都添加斷點,多次調試后,發(fā)現(xiàn)問題出在類的構造函數(shù)和析構函數(shù)被多次調用,而且每次調用對象時,都會建立類的臨時對象。后來我弄明白了在對對象進行操作時,沒有使用引用方式,所以任何操作都不會對其產生實質作用。當我把菜單函數(shù)中對類對象的調用方式都改成引用后,問題迎刃而解。在完成課程設計的過程中,這種問題還有很多,加上時間緊迫,中途時不時會灰心喪氣,但是最后還是堅持了下來。這次的課程設計經歷告訴我,做一件事情,只要自己不放棄,就一定能得到自己所要的。參考文獻1 張俊.王慶春.面向對象程序設計(C+).武漢:武漢大學出版社.20092 譚浩強.語言程序設計.北京:清華大學出版社.20043 李普曼.C+ Primer中文版(第4版).北京:人民郵電出版社.20084 錢雪忠.黃建華.數(shù)據(jù)庫原理及應用第二版.北京:北京郵電大學出版社.20055 羅建軍. 朱丹軍.顧剛.劉路放. 高等教育出版社_2版附錄 部分代碼/MyLIST.cpp#include"MyLIST.h"int LIST:length()int counter=0;Student *current;current=head->next;while(current!=NULL)current=current->next;counter+;return counter;bool LIST:get_data(int i,Student &x) Student *current;int j=1;if(i<1)|(i>length()cout<<"非法位置讀取元素,不能讀??! n"return false;current=head->next;while(current!=NULL&&j<i)j+;current=current->next;x=*current;return true;bool LIST:get_succ (int i, Student &x)Student *current ;int j=1;if(i<1)|(i>length()cout<<"非法位置讀取元素,不能讀取! n"return false;current=head->next;while(current!=NULL&&j<i)j+;current=current->next;if(current->next!=NULL)x=*current->next;return true;else cout<<"第"<<i<<"個元素無后續(xù),不能讀取!n"return false;bool LIST:get_prior (int i, Student &x)Student*current ,*previous;int j=1;if(i<1)|(i>length()cout<<"非法位置讀取元素,不能讀??! n"return false;previous=head;current=head->next;while(current!=NULL&&j<i)j+;previous=current;current=current->next;if(previous!=head)x=*previous;return true;else cout<<"第"<<i<<"個元素無前驅,不能讀取!n"return false;bool LIST:replace_data (double i)int j=0;Student *current =head;current=head->next;while(current!=NULL&&current->Num !=i)j+;current=current->next;if(j=length()cout<<"沒有找到該學號相關信息!"<<endl;return false;int xg;cout<<"輸入您要修改的學生信息:1學號,2姓名,3性別,4年齡,5籍貫,6系別,7專業(yè),8班級, 9學籍變化."<<endl; cin>>xg; string xingming;string xingbie;string jiguan; string xibie;string zhuanye;string banji;string bianhua;switch(xg)case 1:double num;cout<<"您將修改學號,請輸入新的學號"<<endl;cin>>num;current->Num =num;break;case 2:cout<<"您將修改姓名,請輸入新姓名"<<endl;cin>>xingming;current->Name =xingming;break;case 3:cout<<"您將修改性別,請輸入新性別"<<endl;cin>>xingbie;current->Sex =xingbie;break;case 4:int nianling;cout<<"您將修改年齡,請輸入新的年齡"<<endl;cin>>nianling;current->Num =nianling;break;case 5:cout<<"您將修改籍貫,請輸入新籍貫"<<endl;cin>>jiguan;current->Jiguan=jiguan;break;case 6:cout<<"您將修改系別,請輸入新系別"<<endl;cin>>xibie;current->Xibie=xibie;break;case 7:cout<<"您將修改專業(yè),請輸入新專業(yè)"<<endl;cin>>zhuanye;current->Zuanye =zhuanye;break;case 8:cout<<"您將修改班級,請輸入新班級"<<endl;cin>>banji;current->Class =banji;break;case 9:cout<<"您將修改學籍,請輸入新學籍"<<endl;cin>>bianhua;current->bianhua =bianhua;break;return true;bool LIST:insert_data ( Student data,int i)Student*current ,*previous,*newnode;int j=1;newnode=new Student;if(newnode=NULL)cout<<"內存無空閑空間,不能插入:"return false; newnode->Age =data.Age ;newnode->Num =data.Num ; newnode->Class =data.Class; newnode->Jiguan =data.Jiguan; newnode->Name =data.Name; newnode->Sex =data.Sex; newnode->Xibie =data.Xibie; newnode->Zuanye =data.Zuanye; newnode->bianhua =data.bianhua ;newnode->next=NULL; previous=head;current=head->next;while(current!=NULL&&j<i+1)previous=current;current=current->next;j+;newnode->next=current;previous->next=newnode;return true;bool LIST:delete_data (double i)Student *current ,*previous;int j=0;if(isempty()cout<<"表已空,不能刪除!n"return false; previous=head;current=head->next;while(current!=NULL&&current->Num !=i)previous=current;current=current->next;j+;if(j=length()cout<<"沒有該學號信息,不能刪除!"<<endl; return false;previous->next=current->next;delete current;return true;bool LIST:find_data (double i,Student &result)Student *current ; current=head->next;while(current!=NULL)if(current->Num !=i )current=current->next;else result.Age =current->Age ; result.Num =current->Num ; result.Class=current->Class; result.Jiguan=current->Jiguan; result.Name=current->Name; result.Sex=current->Sex; result.Xibie=current->Xibie; result.Zuanye=current->Zuanye; result.bianhua =current->bianhua ;cout<<"查找結果如下:"<<endl;cout<<"學號"<<"t"<<"姓名"<<"t" <<"性別" <<"t"<<"年齡" <<"t"<<"籍貫"<<"t" <<"系別" <<"t"<<"專業(yè)" <<"t"<<"班級"<<"t"<<"學籍變化"<<endl ;cout<<result.Num <<"t"<<result.Name <<"t" <<result.Sex <<"t"<<result.Age <<"t" <<result.Jiguan <<"t" <<result.Xibie <<"t"<<result.Zuanye <<"t"<<result.Class <<"t"<<result.bianhua <<endl ;return true;cout<<"沒有該學號的學生信息!"<<endl;return false;void LIST:tongji (Student x)Student *current;string xingming;string xingbie;string jiguan; string xibie;string zhuanye;string banji;string bianhua;int nl;int sum=0;int tj;cout<<"選擇統(tǒng)計信息:1性別,2年齡,3籍貫,4系別,5專業(yè),6班級,7學籍變化"<<endl;cin>>tj;switch(tj)case 1:cout<<"輸入要輸出的性別: "cin>>xingbie;cout<<jiguan<<"生的信息如下"<<endl;cout<<"學號"<<"t"<<"姓名"<<"t" <<"性別" <<"t"<<"年齡" <<"t"<<"籍貫"<<"t" <<"系別" <<"t"<<"專業(yè)" <<"t"<<"班級"<<"t"<<"學籍變化"<<endl ; current=head->next;while(current!=NULL)if(current->Sex=xingbie)sum=sum+1; cout<<current->Num<<"t"<<current->Name<<"t" <<current->Sex <<"t"<<current->Age <<"t"<<current->Jiguan <<"t" <<current->Xibie <<"t"<<current->Zuanye <<"t"<<current->Class<<"t"<<current->bianhua <<endl ;current=current->next;break;case 2:cout<<"輸入要輸出的年齡: "cin>>nl;cout<<"年齡為"<<nl<<"的學生信息如下"<<endl;cout<<"t"<<"學號"<<"t"<<"姓名"<<"t" <<"性別" <<"t"<<"年齡" <<"t"<<"籍貫"<<"t" <<"系別" <<"t"<<"專業(yè)" <<"t"<<"班級"<<"t"<<"學籍變化"<<endl ; current=head->next;while(current!=NULL)if(current->Age =nl)sum=sum+1; cout<<current->Num<<"t"<<current->Name<<"t" <<current->Sex <<"t"<<current->Age <<"t"<<current->Jiguan <<"t" <<current->Xibie <<"t"<<current->Zuanye <<"t"<<current->Class<<"t"<<current->bianhua <<endl ;current=current->next;break;case 3:cout<<"輸入要輸出的籍貫: "cin>>jiguan;cout<<"籍貫為"<<jiguan<<"的學生信息如下"<<endl;cout<<"學號"<<"t"<<"姓名"<<"t" <<"性別" <<"t"<<"年齡" <<"t"<<"籍貫"<<"t" <<"系別" <<"t"<<"專業(yè)" <<"t"<<"班級"<<"t"<<"學籍變化"<<endl ; current=head->next;while(current!=NULL)if(current->Jiguan =jiguan)sum=sum+1; cout<<current->Num<<"t"<<current->Name<<"t" <<current->Sex <<"t"<<current->Age <<"t"<<current->Jiguan <<"t" <<current->Xibie <<"t"<<current->Zuanye <<"t"<<current->Class<<"t"<<current->bianhua <<endl ;current=current->next;break;case 4:cout<<"輸入要輸出的系別: "cin>>xibie;cout<<"系別為"<<xibie<<"的學生信息如下"<<endl;cout<<"學號"<<"t"<<"姓名"<<"t" <<"性別" <<"t"<<"年齡" <<"t"<<"籍貫"<<"t" <<"系別" <<"t"<<"專業(yè)" <<"t"<<"班級"<<"t"<<"學籍變化"<<endl ; current=head->next;while(current!=NULL)if(current->Xibie =xibie)sum=sum+1; cout<<current->Num<<"t"<<current->Name<<"t" <<current->Sex <<"t"<<current->Age <<"t"<<current->Jiguan <<"t" <<current->Xibie <<"t"<<current->Zuanye <<"t"<<current->Class<<"t"<<current->bianhua <<endl ;current=current->next;break;case 5:cout<<"輸入要輸出的專業(yè): "cin>>zhuanye;cout<<"專業(yè)為"<<zhuanye<<"的學生信息如下"<<endl;cout<<"學號"<<"t"<<"姓名"<<"t" <<"性別" <<"t"<<"年齡" <<"t"<<"籍貫"<<"t" <<"系別" <<"t"<<"專業(yè)" <<"t"<<"班級"<<"t"<<"學籍變化"<<endl ; current=head->next;while(current!=NULL)if(current->Zuanye =zhuanye)sum=sum+1; cout<<current->Num<<"t"<<current->Name<<"t" <<current->Sex <<"t"<<current->Age <<"t"<<current->Jiguan <<"t" <<current->Xibie <<"t"<<current->Zuanye <<"t"<<current->Class<<"t"<<current->bianhua <<endl ;current=current->next;break;case 6:cout<<"輸入要輸出的班級: "cin>>banji;cout<<"班級為"<<banji<<"的學生信息如下"<<endl;cout<<"學號"<<"t"<<"姓名"<<"t" <<"性別" <<"t"<<"年齡" <<"t"<<"籍貫"<<"t" <<"系別" <<"t"<<"專業(yè)" <<"t"<<"班級"<<"t"<<"學籍變化"<<endl ; current=head->next;while(current!=NULL)if(current->Class =banji)sum=sum+1; cout<<current->Num<<"t"<<current->Name<<"t" <<current->Sex <<"t"<<current->Age <<"t"<<current->Jiguan <<"t" <<current->Xibie <<"t"<<current->Zuanye <<"t"<<current->Class<<"t"<<current->bianhua <<endl ;current=current->next;break;case 7:cout<<"輸入要輸出信息的學籍變化: "cin>>banji;cout<<"學籍變化為"<<bianhua<<"的學生信息如下"<<endl;cout<<"學號"<<"t"<<"姓名"<<"t" <<"性別" <<"t"<<"年齡" <<"t"<<"籍貫"<<"t" <<"系別" <<"t"<<"專業(yè)" <<"t"<<"班級"<<"t"<<"學籍變化"<<endl ; current=head->next;while(current!=NULL)if(current->Class =banji)sum=sum+1; cout<<current->Num<<"t"<<current->Name<<"t" <<current->Sex <<"t"<<current->Age <<"t"<<current->Jiguan <<"t" <<current->Xibie <<"t"<<current->Zuanye <<"t"<<current->Class<<"t"<<current->bianhua <<endl ;current=current->next;break;void LIST:print_list()Student *current; current=head->next;ofstream out("xuesheng");while(current)out<<current->Num<<"t"<<current->Name<<"t" <<current->Sex <<"t"<<current->Age <<"t"<<current->Jiguan <<"t" <<current->Xibie <<"t"<<current->Zuanye <<"t"<<current->Class <<"t"<<current->bianhua <<endl;out.close ;current=current->next;cout<<endl;void LIST:shuchu()Student *current; current=head->next;cout<<"學號"<<"t"<<"姓名"<<"t" <<"性別" <<"t"<<"年齡" <<"t"<<"籍貫"<<"t" <<"系別" <<"t"<<"專業(yè)" <<"t"<<"班級"<<"t"<<"學籍變化"<<endl ;while(current)cout<<current->Num<<"t"<<current->Name<<"t" <<current->Sex <<"t"<<current->Age <<"t"<<current->Jiguan <<"t" <<current->Xibie <<"t"<<current->Zuanye <<"t"<<current->Class<<"t"<<current->bianhua;current=current->next;cout<<endl;cout<<endl;/Mymain.cpp#include<iostream>#include <time.h> #include<string>#include<fstream>#include<iomanip>using namespace std;#include"MyLIST.h"#include"MyStudent.h"#include"Myvoid.h"int main()LIST lis;Student stu; Student result; Student ChuanDi100;double num;char j=Y;int i=0;int xz;int cd=len();i=cd+1;for(int k=1;k<=cd;k+)In(k,ChuanDi);lis.insert_data (ChuanDik,k); output();cin>>xz;while(j=Y)switch(xz)case 1: system("cls"); cout<<"您將進行學生信息登記!"<<endl;cout<<"請輸入學生信息(每項輸入完畢請按Enter鍵進行下一項):"<<endl;cout<<"請輸入學生的學號:"<<endl;cin>>stu.Num;cout<<"請輸入學生的姓名:"<<endl;cin>>stu.Name;cout<<"請輸入學生的性別:"<<endl;cin>>stu.Sex ;cout<<"請輸入學生的年齡:"<<endl;cin>>stu.Age;cout<<"請輸入學生的籍貫:"<<endl;cin>>stu.Jiguan ;cout<<"請輸入學生的系別:"<<endl;cin>>stu.Xibie ;cout<<"請輸入學生的專業(yè):"<<endl;cin>>stu.Zuanye ;cout<<"請輸入學生的班級:"<<endl;cin>>stu.Class ;cout<<"請輸入學生的學籍變化:"<<endl;cin>>stu.bianhua ; lis.insert_data(stu, i);lis.shuchu ();i=i+1;break;case 2: system("cls");cout<<"學生信息如下:"<<endl;lis.shuchu ();cout<<"輸入要刪除的學生學號(輸入完畢請按Enter鍵到下一步)"<<endl;cin>>num; lis.delete_data( num);cout<<"刪除后結果如下:"<<endl;lis.shuchu ();break;case 3: system("cls"); cout<<"學生信息如下:"<<endl; lis.shuchu ();double su;cout<<"輸入查找學生學號(輸入完畢請按Enter鍵到下一步):"<<endl;cin>>su; lis.find_d

注意事項

本文(《C++程序設計》課程設計報告)為本站會員(燈火****19)主動上傳,裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對上載內容本身不做任何修改或編輯。 若此文所含內容侵犯了您的版權或隱私,請立即通知裝配圖網(wǎng)(點擊聯(lián)系客服),我們立即給予刪除!

溫馨提示:如果因為網(wǎng)速或其他原因下載失敗請重新下載,重復下載不扣分。




關于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權所有   聯(lián)系電話:18123376007

備案號:ICP2024067431-1 川公網(wǎng)安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對上載內容本身不做任何修改或編輯。若文檔所含內容侵犯了您的版權或隱私,請立即通知裝配圖網(wǎng),我們立即給予刪除!