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

正文內(nèi)容

c課設(shè)高校人員信息管理系統(tǒng)課程設(shè)計報告-資料下載頁

2025-05-13 22:21本頁面
  

【正文】 的人員的信息endl。 ()。 for(int i=0。itop。i++) if (()==Tea[i].GetNum()) { cout該編號的人員已存在endl。 return。 } Tea[top]=t。 top=top+1。 cout添加成功!endl。}void Exp_Manage::Show(){ if(top==0) { cout無數(shù)據(jù)!endl。 return。 } coutsetw(10)編號 setw(10)姓名 setw(10)性別 setw(10)年齡 setw(10)實驗室 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)中沒有存儲記錄endl。 return。 } int choice。 cout請選擇查找方式: .endl。 cinchoice。 switch(choice) { case 1:{ cout請輸入要查找的編號: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請輸入要查找的姓名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無此選項!請重試!endl。break。 }}void Exp_Manage::Edit(){ if(top==0) { cout當(dāng)前系統(tǒng)中沒有存儲記錄!endl。 return。 } int num。 cout請輸入要查找的教編號:endl。 cinnum。 for(int i=0。itop。i++) { if(Tea[i].GetNum()==num) { cout請對這位教師的信息進(jìn)行修改:endl。 Tea[i].Input()。 cout修改成功endl。return。 } } cout查無此人endl。}void Exp_Manage::Delete(){ if(top==0) { cout當(dāng)前系統(tǒng)中沒有存儲記錄!endl。 return。 } cout按編號查找刪除 按姓名查找刪除endl。 int choice。 cinchoice。 switch(choice) { case 1: { cout請輸入編號:。 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無此項,失??!endl。break。 }return。 } } cout無此人!endl。 } 。break。 case 2: { cout請輸入姓名:。 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無此項,失敗!endl。break。 }return。 } } cout無此人!endl。 }。 break。 default:cout沒有此項,失敗:endl。break。 }}void Exp_Manage::Total(){ cout1 按人數(shù)統(tǒng)計 2 按性別統(tǒng)計 endl。 int choice。 cout請輸入你的選擇endl。 cinchoice。 switch(choice) { case 1:cout行政人員類人數(shù)為:topendl。break。 case 2: { int a=0,b=0。 for(int i=0。itop。i++) { if(Tea[i].sex==男) a++。 if(Tea[i].sex==女) b++。 } cout男性人數(shù)為aendl。 cout女性人數(shù)為bendl。 }break。 default:cout輸入錯誤。請重新輸入endl。break。 }}void Exp_Manage::Save(){ ofstream out(D:\\,ios::out)。 if(!out) { cout打開失敗!endl。 return。 } cout打開成功!endl。 for(int i=0。itop。i++) { outTea[i].num Tea[i].name Tea[i].sex Tea[i].age Tea[i].library Tea[i].zw endl。 } cout寫入成功!endl。 ()。}void Exp_Manage::Read(){ ifstream in(D:\\,ios::in)。 if(!in) { cout打開失敗!endl。 return。 } int i=0。 while(inTea[i].num Tea[i].name Tea[i].sex Tea[i].age Tea[i].library Tea[i].zw) { Tea[i].Output()。 i++。 top++。 } ()。}。class Tea_Manage{ Teacher Tea[TMAX]。 //TMAX為常量,為數(shù)組中可存儲的教師記錄的最大數(shù); int top。 //top表示當(dāng)前系統(tǒng)中存儲的記錄個數(shù);public: Tea_Manage(){top=0。} //初始時記錄的個數(shù)為0,所以設(shè)置top=0。 void Add()。 //實現(xiàn)該類記錄的添加; void Show()。 //實現(xiàn)該類所有記錄的顯示; void Search()。 //實現(xiàn)該類記錄的查詢; void Edit()。 //實現(xiàn)該類記錄的修改; void Delete()。 //實現(xiàn)該類記錄的刪除; void Total()。 //實現(xiàn)該類記錄的統(tǒng)計; void Save()。 //將該類記錄保存到文件; void Read()。 //可從文件中將記錄讀取到該類的數(shù)組中;}。void Tea_Manage::Add(){ if(top=TMAX) { cout用戶已滿endl。 return。 } Teacher t。 cout輸入新添加的人員的信息endl。 ()。 for(int i=0。itop。i++) if (()==Tea[i].GetNum()) { cout該編號的人員已存在endl。 return。 } Tea[top]=t。 top=top+1。 cout添加成功!endl。}void Tea_Manage::Show(){ if(top==0) { cout無數(shù)據(jù)!endl。 return。 } coutsetw(10)編號 setw(10)姓名 setw(10)性別 setw(10)年齡 setw(10)系部 setw(10)專業(yè) setw(10)職稱 endl。 for(int i=0。itop。i++) Tea[i].Output()。}void Tea_Manage::Search(){ if(top==0) { cout當(dāng)前系統(tǒng)中沒有存儲記錄endl。 return。 } int choice。 cout請選擇查找方式: .endl。 cinchoice。 switch(choice) { case 1:{ cout請輸入要查找的編號: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請輸入要查找的姓名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無此選項!請重試!endl。break。 }}void Tea_Manage::Edit(){ if(top==0) { cout當(dāng)前系統(tǒng)中沒有存儲記錄!endl。 return。 } int num。 cout請輸入要查找的教編號:endl。 cinnum。 for(int i=0。itop。i++) {
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1