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

正文內(nèi)容

c課設(shè)高校人員信息管理系統(tǒng)附全部代碼-資料下載頁

2025-04-07 05:23本頁面
  

【正文】 rimenter(int n=0,string nm=,string s=男,int a=0,string l=,string z=) :Person(num,name,sex,age),library(l),zw(z){}。 void Input() { coutinput the numendl。 cinnum。 coutinput the nameendl。 cinname。 coutinput the sex。 cout( )endl。 cout請(qǐng)輸入你的選擇endl。 cinchoice2。 switch(choice2) { case 1:sex=男。break。 case 2:sex=女。break。 default:cout輸入錯(cuò)誤。endl。break。 } coutinput the ageendl。 cinage。 coutinput the libraryendl。 cinlibrary。 coutinput the zwendl。 cinzw。 } void Output() { coutsetw(10)num setw(10)name setw(10)sex setw(10)age setw(10)library setw(10)zw endl。 }}。class Tea_Sta:public Teacher,public Staff{public: int choice1。 int choice2。 Tea_Sta(int n=0,string nm=,string s=男,int a=0,string d=電子系,string sp=,string t=,string z=,string zc=) :Person(n,nm,s,a),Teacher(n,nm,s,a,sp,t),Staff(n,nm,s,a,z,zc){}。 void Input() { coutinput the numendl。 cinnum。 coutinput the nameendl。 cinname。 coutinput the sex。 cout( )endl。 cout請(qǐng)輸入你的選擇endl。 cinchoice2。 switch(choice2) { case 1:sex=男。break。 case 2:sex=女。break。 default:cout輸入錯(cuò)誤。endl。break。 } coutinput the ageendl。 cinage。 coutinput the departendl。 coutsetw(10)setw(10)setw(10)setw(10)setw(10) setw(10)setw(10)setw(10)setw(10)endl。 cout請(qǐng)輸入你的選擇endl。 cinchoice1。 switch(choice1) { case 1:depart=電子系。break。 case 2:depart=機(jī)械系。break。 case 3:depart=經(jīng)管系。break。 case 4:depart=建工系。break。 case 5:depart=計(jì)算機(jī)系。break。 case 6:depart=外語系。break。 case 7:depart=財(cái)會(huì)系。break。 case 8:depart=材料系。break。 case 9:depart=文法系。break。 default:cout輸入錯(cuò)誤。endl。break。 } coutinput the specendl。 cinspec。 coutinput the titleendl。 cintitle。 coutinput the zzmmendl。 cinzzmm。 coutinput the zcendl。 cinzc。 } void Output() { coutsetw(10)num setw(10)name setw(10)sex setw(10)age setw(10)depart setw(10)spec setw(10)title setw(10)zzmm setw(10)zc endl。 }}。class Exp_Manage{ Experimenter Tea[TMAX]。 //TMAX為常量,為數(shù)組中可存儲(chǔ)的教師記錄的最大數(shù); int top。 //top表示當(dāng)前系統(tǒng)中存儲(chǔ)的記錄個(gè)數(shù);public: Exp_Manage(){top=0。} //初始時(shí)記錄的個(gè)數(shù)為0,所以設(shè)置top=0。 void Add()。 //實(shí)現(xiàn)該類記錄的添加; void Show()。 //實(shí)現(xiàn)該類所有記錄的顯示; void Search()。 //實(shí)現(xiàn)該類記錄的查詢; void Edit()。 //實(shí)現(xiàn)該類記錄的修改; void Delete()。 //實(shí)現(xiàn)該類記錄的刪除; void Total()。 //實(shí)現(xiàn)該類記錄的統(tǒng)計(jì); void Save()。 //將該類記錄保存到文件; void Read()。 //可從文件中將記錄讀取到該類的數(shù)組中;}。void Exp_Manage::Add(){ if(top=TMAX) { cout用戶已滿endl。 return。 } Experimenter t。 cout輸入新添加的人員的信息endl。 ()。 for(int i=0。itop。i++) if (()==Tea[i].GetNum()) { cout該編號(hào)的人員已存在endl。 return。 } Tea[top]=t。 top=top+1。 cout添加成功!endl。}void Exp_Manage::Show(){ if(top==0) { cout無數(shù)據(jù)!endl。 return。 } coutsetw(10)編號(hào) setw(10)姓名 setw(10)性別 setw(10)年齡 setw(10)實(shí)驗(yàn)室 setw(10)職務(wù) endl。 for(int i=0。itop。i++) Tea[i].Output()。}void Exp_Manage::Search(){ if(top==0) { cout當(dāng)前系統(tǒng)中沒有存儲(chǔ)記錄endl。 return。 } int choice。 cout請(qǐng)選擇查找方式: .endl。 cinchoice。 switch(choice) { case 1:{ cout請(qǐng)輸入要查找的編號(hào):endl。 int num。 cinnum。 for(int i=0。itop。i++) { if(Tea[i].GetNum()==num) { Tea[i].Output()。 return。 } } cout查無此人!endl。 }break。 case 2:{ cout請(qǐng)輸入要查找的姓名endl。 string name。 cinname。 for(int i=0。itop。i++) { if(Tea[i].GetName()==name) { Tea[i].Output()。 } } for( i=0。itop。i++) if(Tea[i].GetName()==name) return。 cout查無此人!endl。 }break。 default :cout無此選項(xiàng)!請(qǐng)重試!endl。break。 }}void Exp_Manage::Edit(){ if(top==0) { cout當(dāng)前系統(tǒng)中沒有存儲(chǔ)記錄!endl。 return。 } int num。 cout請(qǐng)輸入要查找的教編號(hào):endl。 cinnum。 for(int i=0。itop。i++) { if(Tea[i].GetNum()==num) { cout請(qǐng)對(duì)這位教師的信息進(jìn)行修改:endl。 Tea[i].Input()。 cout修改成功endl。return。 } } cout查無此人endl。}void Exp_Manage::Delete(){ if(top==0) { cout當(dāng)前系統(tǒng)中沒有存儲(chǔ)記錄!endl。 return。 } cout按編號(hào)查找刪除 按姓名查找刪除endl。 int choice。 cinchoice。 switch(choice) { case 1: { cout請(qǐng)輸入編號(hào):。 int num。 cinnum。 for(int i=0。itop。i++) { if(num==Tea[i].num) { cout是否確認(rèn)刪除? 是 否 endl。 int choice。 cinchoice。 switch(choice) { case 1: { for(int j=i。jtop1。j++) Tea[j]=Tea[j+1]。 cout刪除成功!endl。 top。 }。break。 case 2:return。 default:cout無此項(xiàng),失敗!endl。break。 }return。 } } cout無此人!endl。 } 。break。 case 2: { cout請(qǐng)輸入姓名:。 string name。 cinname。 for(int i=0。itop。i++) { if(name==Tea[i].name) { cout是否確認(rèn)刪除? 是 否 endl。 int choice。 cinchoice。 switch(choice) { case 1: { for(int j=i。jtop1。j++) Tea[j]=Tea[j+1]。 cout刪除成功!endl。 top。 }。break。 case 2:return。 default:cout無此項(xiàng),失?。ndl。break。 }return。 } } cout無此人!endl。 }。 break。 default:cout沒有此項(xiàng),失?。篹ndl。break。 }}void Exp_Manage::Total(){ cout1 按人數(shù)統(tǒng)計(jì) 2 按性別統(tǒng)計(jì) endl。 int choice。 cout請(qǐng)輸入你的選擇endl。 cinchoice。 switch(choice) { case 1:cout行政人員類人數(shù)為:topendl。break。 case 2: { int a=0
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1