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

正文內(nèi)容

c課程設計--高校職工工資管理系統(tǒng)(完整版)

2024-10-23 08:09上一頁面

下一頁面
  

【正文】 fstream 是文件流頭文件; 包含的類有: class employee(員工) class teacher (教師) class shiyanyuan (實驗員) class xingzhengrenyuan(行政人員) class tshiyanyuan (教師兼職實驗員) class xteacher(行政人員兼職教師 包含的函數(shù)有: 主函數(shù) int main() 運行函數(shù) void run() 錄入函數(shù) void luru() 尋找函數(shù) int search(int number,int amp。f 此處也為引用,將對此 f 的操作和在外對 f 操作保存一致性。 ( 5) class tshiyanyuan (教師兼職實驗員) 子類 繼承 employee 類 增有屬性 課時和實驗補助。 返回值:無 流程如下: switch(c) 1 2 3 4 5 6 (兩個,運用函數(shù)重載分別實現(xiàn)按工號和名字尋找功能) int search(int number,int amp。amp。j總數(shù); j++) 對象 [j] ==對象 [j+1] 符合查找要求 的 對象 .show() 按名字 search(char *name1,int amp。 6. 總結(jié) 在這次課程設計中我編寫了兩個程序,這是第二個,第一個因為不能使編號唯一而放棄,在老師指導下終于知道怎樣讓編號不會重復,然后在這個程序里集合了第一個程序里的優(yōu)點,再加以改善,使得這個程序更加簡潔實用,在編寫的過程中,雖然遇到了各種各樣的問題,但我都一一化解,把一個個錯誤解 決后心情都是非常暢快的,通過這次課程設計,讓我真正地把學到的知識 應用于實踐,從而使得自己對知識的 掌握程度得以加深加固,另外也增強了自己的邏輯思維能力,在寫程序的過程中,通過解決一個個小問題使得自己對 C++這門課程的興趣得以大大的加強, 因為 我發(fā)現(xiàn) C++其實非常有趣。 cout基本工資: salayendl。 } virtual void load(fstream amp。 cout請輸入課時 endl。 fless。 cinbuzhu。 } }。 cout 總 工 資 =\n 基 本 工 資 + 行 政 補 助湖南工程學院課程設計報告 28 =salay+buzhuendlendl。 class tshiyanyuan:public employee { public: int buzhu。 cinless。f) { employee::load(f)。 cout總工資 =\n 基本工資 +(課時 120) *20+行政補助 =salay+(less120)*20+buzhuendlendl。f) { employee::save(f)。 xingzhengrenyuan x[100]。i) { for(i=0。i++) { if(x[i].num==number) return 3。 } int search(char *name1,int amp。ix1。 } return 0。 cout 2:實驗員信息顯示 endl。 湖南工程學院課程設計報告 37 cout 6:退出信息信息顯示 endl。i++){t[i].show()。 case 3:{for(i=0。}system(pause)。break。 cout 1 :教師錄入 endl。 cout 5:行政人員兼職教師錄入 endl。 switch(c) { case 1:{t[t1].set(num++)。}break。break。 case 2:run()。 cout******************* 刪除方式*****************endlendl。c!=2) { cout輸入錯誤! endl。}break。filesave()。if(m==1){for(int j=i。cout確定刪除請按 1,取消請按其 他 任 意 鍵 endl。}else{coutname1未被刪除! endl。j++)ts[j]=ts[j+1]。cinm。 } } if(c==1) { cout請選擇要刪除的編號: 。cout確定刪除請按 1,取消請按其他 任 意 鍵 endl。}else{cout 編 號 :number未被刪除! endl。j++)s[j]=s[j+1]。cinm。 湖南工程學院課程設計報告 45 case 4:{ts[i].show()。 cout 編號:number 被 刪 除 ! endl。jxt1。 cinx。 coutendl。 cinnumber。cinn。cinn。cinn。cinn。cinn。 if(x!=1) break。system(pause)。filesave()。filesave()。filesave()。filesave()。filesave()。 (高校工資管理系統(tǒng) .txt,ios::in)。 for(i=0。 for(i=0。 } //****************保存 *************** void filesave() { int i。 files1endl。 filets1endl。 ()。 coutendl。 coutendl。break。break。}break。break。 cout請選擇功能代碼: 。 coutendl。 coutendl。its1。is1。 (高校工資管理系統(tǒng) .txt,ios::out)。i++) ts[i].load(file)。i++) 湖南工程學院課程設計報告 51 s[i].load(file)。 filenum。 } cout是否繼續(xù)查詢:按 1 繼續(xù),其他退出 endl。 case 5:{xt[i].show()。 case 4:{ts[i].show()。 case 3:{x[i].show()。 case 2:{s[i].show()。 case 1:{t[i].show()。int number,i。cout修改成功! endl。cout修改成功! endl。cout 修改成功! endl。cout修改成功! endl。cout修改成功! endl。 switch(test) { case 0:{cout沒有此人 !endl。 cout請選擇功能代碼: 。 } } //*************************************************湖南工程學院課程設計報告 46 ** void change() { system(cls)。filesave()。}}break。int m。jx1。 cout 編號:number 被 刪 除 ! endl。 case 2:{s[i].show()。cinm。 cinnumber。jxt1。 cout 姓名:name1被刪除! endl。 case 4:{ts[i].show()。cinm。j++)s[j]=s[j+1]。}else{coutname1 未 被 刪 除 !endl。cout確定刪除請按 1,取消請按其他 任 意 鍵 endl。 } else { if(c==2) { cout請選擇要刪除的名字: 。 cout endlendl。 default:{cout 輸入錯誤 ! 無對應代碼 !endl。}break。ts1++。}break。 cout 6:退出信息錄入 endl。 cout 2:實驗員錄入 endl。system(pause)。 case 5:{for(i=0。i++){x[i].show()。}break。 cout********************************************************** endl。 cout 3:行政人員信息顯示 endl。 湖南工程學院課程設計報告 36 while(1) { system(cls)。 } for(i=0。it1。its1。i++) { if(t[i].num==number) return 1。 xteacher xt[100]。 } 湖南工程學院課程設計報告 32 void load(fstream amp。 cout請輸入課時: endl。 } }。 cinbuzhu。 湖南工程學院課程設計報告 29 void show() { if(num!=0) { employee::show()。f) { employee::save(f)。 void show() { if(num!=0) { employee::show()。 } void save(fstream amp。 class shiyanyuan:public employee { public: int buzhu。 cout 總 工 資 =\n 基 本 工 資 + (課時 120 )*20=salay+(less120)*20endlendl。 } }。 cout請輸入姓名: endl。 湖南工程學院課程設計報告 22 源代碼: include iostream include fstream using namespace std。i) search(char *name1,int amp。 返回值:無 流程如下: Y N 開始 選擇查找方式 修 改 對象 [i].set
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1