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

正文內(nèi)容

c課程設(shè)計(jì)報(bào)告(學(xué)生學(xué)籍管理系統(tǒng))-在線瀏覽

2025-02-17 14:56本頁(yè)面
  

【正文】 etPlace(string)。 //獲取學(xué)分 double getP2()。 //獲取班級(jí) int getNumber()。 //獲取年齡 string getName()。 //獲取性別 string getId()。//獲取籍貫 friend ofstream amp。 output,Info amp。//重載輸出文件流操作符 friend ifstream amp。 input,Info amp。//重載輸入文件流操作符 }。 //構(gòu)造函數(shù) void add()。 //刪除記錄的函數(shù) void search()。 //顯示記錄的函數(shù) }。 //顯示全部班級(jí)的函數(shù) void showStu()。 //顯示某班學(xué)生的詳細(xì)信息的函數(shù) void showGra()。 //顯示某班成績(jī)排序的函數(shù) }。 //查詢學(xué)分高于某值的學(xué)生的函數(shù) void Glow()。 //查詢績(jī)點(diǎn)高于某值的學(xué)生的函數(shù) void Plow()。 }。 //學(xué)籍管理系統(tǒng)主菜單函數(shù) void exitmenu()。 //班級(jí)管理子系統(tǒng)菜單函數(shù) void grademenu()。 **************************共五個(gè)類 ************************ 優(yōu)秀文檔,值得珍藏! 優(yōu)質(zhì)文檔,值得珍 藏 六、模塊分析 1. 添加模塊 系統(tǒng)將提示用戶輸入新添加的學(xué)生的信息,儲(chǔ)存在文件中 2. 查找模塊 首先由用戶輸入要查找的學(xué)生姓名或?qū)W號(hào),然后系統(tǒng)用查找函數(shù)查找,然后系統(tǒng)就調(diào)用輸出函數(shù),輸出所查找的學(xué)生資料。 根據(jù)用戶輸入的學(xué)號(hào)刪除相應(yīng)學(xué)生信息。 double mid1,mid2。 i=l。 mid1=(b[(l+r)1].getP1())。 do{ while(b[i].getP1()mid1 || b[i].getP1()==mid1 amp。 b[i].getP2()mid2) i++。amp。 if(i=j) { x=b[i]。 b[j]=x。 j。 if(ir) qsort(b,i,r)。 } 2. 按照姓名 or學(xué)號(hào)查找的函數(shù) void Stu::search() { string s。 /*記錄輸入的學(xué)號(hào) */ ifstream in()。 cout\t\t\t 按照姓名查詢請(qǐng)按 1, 按照學(xué)號(hào)查詢請(qǐng)按 2: endl。 if(i==1) { cout\t\t\t 請(qǐng)輸入學(xué)生姓名 :endl。 } if(i==2) { cout\t\t\t 請(qǐng)輸入學(xué)生學(xué)號(hào) :endl。 } while(!()) { inone。 cout\tendl。 } if(i==2) { if(()==num) { cout\t 學(xué)號(hào) : ()\t 姓名 : ()\t 性別 : ()endl \t 年齡 : ()\t 身份證號(hào) : ()\t籍貫 : ()endl \t班級(jí) : ()\t學(xué)分 : ()\t績(jī)點(diǎn) : ()endl。 } /*按照學(xué)號(hào)查找并輸出 */ continue。 cout\t\t\t 按任意鍵繼續(xù) ......endl。 getchar()。 運(yùn)行程序時(shí)嚴(yán)格按照提示輸入信息。 int main() { Menu a。 Cla z。 int x,y。 ofstream out()。 while(1) { ()。 switch(x) { case 1: ()。 cinc。y39。 else break。 case 2: ()。 //查找記錄 case 3: ()。 //刪除記錄 優(yōu)秀文檔,值得珍藏! 優(yōu)質(zhì)文檔,值得珍 藏 case 4: ()。 //顯示記錄 case 5: { while(1) { ()。 switch(y) { case 1: ()。 case 2: ()。 case 3: ()。 case 4: ()。 case 5:()。 case 6: break。 } break。 ciny。 break。 break。break。 break。 break。 } if(y==6) break。 } //進(jìn)入成績(jī)管理子系統(tǒng) case 7: ()。 //退出主程序 } } } ***************************以上為主程序 ************************** 優(yōu)秀文檔,值得珍藏! 優(yōu)質(zhì)文檔,值得珍 藏 *****************************以下 為界面的實(shí)現(xiàn)程序 ************************ void Menu::mainmenu() { cout\n\n\n\t\t\t★★★★★學(xué)籍管理系統(tǒng)★★★★★ \n\n\n。 cout\t\t※ ※ \n。 cout\t\t※ ※ \n。 cout\t\t※ 5.☆班級(jí)管理 ※ \n。 cout\t\t※ 出系統(tǒng) ※ \n。 cout\t\t※※※※※※※※※※※※※※※※※※※※※※※ \n。 //主界面 } void Menu::classmenu() { cout\n\n\n\t\t\t★★★★★班級(jí)管理子系統(tǒng)★ ★★★★ \n\n\n。 cout\t\t※ ※ \n。 cout\t\t※ ※ \n。 cout\t\t※ ※ \n。 cout\t\t※ ※ \n。 cout\t\t\t 請(qǐng)選擇 (1,2,3,4,5,6)。 優(yōu)秀文檔,值得珍藏! 優(yōu)質(zhì)文檔,值得珍 藏 cout\t\t※※※※※※※※※※※※※※※※※※※※※※※ \n。 cout\t\t※ ※ \n。 cout\t\t※ ※ \n。 cout\t\t※ ※ \n。 cout\t\t※※※※※※※※※※※※※※※※※※※※※※※ \n。 //子系統(tǒng)界面 } *******************以下為對(duì)數(shù)據(jù)添加、查詢、刪除、顯示的實(shí)現(xiàn)程序 ****************** Case1(添加記錄 ), Case2(查詢記錄), Cas3(刪除記錄), Case4(顯示記錄) include Info::Info() //構(gòu)造函數(shù) Info::Info(Info amp。operator(ofstream amp。 ToT) { output()\n()\n ()\n()\n ()\n()\n() \n()\n()endlendl。 } //重載 操作符 ifstream amp。input,Info amp。 int age。 double point2。 string name。 string id。 inputnumbernamesexageidplacepoint1point2cla。 (name)。 (age)。 (place)。 (point1)。 return input。 int i,flag。 ifstream input()。 inputa。 for(i=1。i++) if(f[i]==()) { flag=1。
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1