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

正文內(nèi)容

高校職工信息與工資管理系統(tǒng)課程設(shè)計報告-在線瀏覽

2024-09-02 20:01本頁面
  

【正文】 源代碼(1)頭文件:if !defined (H_Salary_H)define H_Salary_Hinclude iostreaminclude stringinclude fstreaminclude iomanipusing namespace std。 //從鍵盤輸入職工數(shù)據(jù) virtual void input(ifstreamamp。 //從文件讀入職工數(shù)據(jù) virtual void output()=0。 outfile)=0。 // 計算職工收入函數(shù) Person() //Person基類構(gòu)造函數(shù) {next=0。 //職工姓名 string ID。 /*崗位類別 :1:教師 2:實驗員 3:行政人員 4:教師兼實驗員 5:行政人員兼教師*/ char address[150] 。 char education[50]。學(xué)士 b;碩士 c;博士 char sex[10]。 double salary。 //指針成員 friend bool isexist(string id)。 //將Salary_Management類聲明為友員類}。 //上學(xué)期工作量public: Teacher() { salary=1000。 //崗位類別為1 } void input()。 infile)。 void output(ofstreamamp。 double ining()。class Assitant :virtual public Person{public: Assitant() { salary=800。 //崗位類別為2 allowance=150。 void input()。 infile)。 void output(ofstreamamp。 double ining()。 double allowance。class Manager :virtual public Person{public: Manager() { salary=900。 //崗位類別為3 allowance=void input(ifstreamamp。void output()。 outfile)。protected: double allowance。class Teacher_Assistant : public Teacher,public Assitant{public: Teacher_Assistant() { Teacher::salary=1000。 //崗位類別為4 Assitant::allowance=150。 void input(ifstreamamp。 void output()。 outfile)。}。 //基本工資900元 duty=5。 //行政補貼250元 } void input()。 infile)。 void output(ofstreamamp。 double ining()。class Salary_Management{public: Salary_Management()。 //析構(gòu)函數(shù) void AddRec()。 //刪除職工記錄 void Modify()。 //顯示職工記錄 void Save()。 //按職工編號查找職工記錄 void FindRecName()。 void FindRecEducation()。 void Load()。 //引導(dǎo) void Statistics()。 //菜單功能選擇 void Handle_menu()。 //鏈表頭指針 void clear()。 //查找職工結(jié)點}。void print_worktype_menu()。endif(2)源文件:include void Teacher::input() //從鍵盤補充其他數(shù)據(jù){ cout\t編 號: 。 cout\t姓 名: 。 cout\t性 別: 。 cout\t年 齡: 。 cout\t學(xué) 歷:。 cout\t地 址:。 cout\t電 話:。 cout\t教師上學(xué)期課時: 。 salary=ining()。 infile){ infileID。 infileage。 infilename。 infilephone。 infilehourssalary。 cout\t姓 名: nameendl。 cout\t年 齡: ageendl。 cout\t地 址:addressendl。 cout\t人員類別: Work_type(duty)endl。 cout\t工 資: salary 元endl。 outfile){ outfileID\tname\tsex\tage\teducation\taddress\tphone\tduty\thours\tsalaryendl。 else return salary。 cinID。 cinname。 cinsex。 cinage。 cineducation。 cinaddress。 cinphone。}void Assitant::input(ifstreamamp。}void Assitant::output(){ cout\t編 號: IDendl。 cout\t性 別: sexendl。 cout\t學(xué) 歷:educationendl。 cout\t電 話:phoneendl。 cout\t工 資: salary 元endl。 outfile){ outfileID\tname\tsex\tage\teducation\taddress\tphone\tduty\tsalaryendl。}void Manager::input(){ cout\t編 號: 。 cout\t姓 名: 。 cout\t性 別: 。 cout\t年 齡: 。 cout\t學(xué) 歷:。 cout\t地 址:。 cout\t電 話:。 salary=ining()。 infile){ infileIDnamesexageeducationaddressphonedutysalary。 cout\t姓 名: nameendl。 cout\t年 齡: ageendl。 cout\t地 址:addressendl。 cout\t人員類別: Work_type(duty)endl。 }void Manager::output(ofstreamamp。}double Manager::ining(){ return salary+allowance。 cinID。 cinname。 cinsex。 cinage。 cineducation。 cinaddress。 cinphone。 cinTeacher::hours。}void Teacher_Assistant::input(ifstreamamp。}void Teacher_Assistant::output(){ cout\t編 號: IDendl。 cout\t性 別: sexendl。 cout\t學(xué) 歷:educationendl。 cout\t電 話:phoneendl。 cout\t教師上學(xué)期上課課時: Teacher::hours。}void Teacher_Assistant::output(ofstreamamp。 }double Teacher_Assistant::ining(){ if(Teacher::hours12) return salary+allowance+(Teacher::hours12)*30。}void Manager_Teacher::input(){ cout\t編 號: 。 cout\t姓 名: 。 cout\t性 別: 。 cout\t年 齡: 。 cout\t學(xué) 歷:。 cout\t地 址:。 cout\t電 話:。 cout\t上學(xué)期上課課時: 。 salary=ining()。 infile){ infileIDnamesexageeducationaddressphonedutyTeacher::hourssalary。 cout\t姓 名: nameendl。 cout\t年 齡: ageendl。 cout\t地 址:addressendl。 cout\t人員類別: Work_type(duty)。 cout\t工資: salary 元endl。 outfile){ outfileID\tname\tsex\tage\teducation\taddress\tphone\tduty\tTeacher::hours\tsalaryendl。}Salary_Management::Salary_Management()//構(gòu)造函數(shù) (創(chuàng)建一個頭結(jié)點的鏈表){ Person* p=new Teacher。 Build()。 while (p) { PL=pnext。 p=PL。}void print_worktype_menu(){ cout\t\t請選擇人員類別: endl。 cout\t\t\t實 驗 員: endl。 cout\t\t\t教師兼實驗員: endl。 cout\n\t\t請選擇要添加的相應(yīng)的人員類別分類碼: 。y39。 Assitant* pa。 Teacher_Assistant* pta。 while (ch==39。||ch==39。) { cout\t*******************增加職工**********************endl。 while (pnext)p=pnext。 char select。 switch(select) { case 39。: pt=new Teacher。 pnext=pt。 case 39。 : pa=new Assitant。 pnext=pa。 case 39。 : pm=new Manager。 pnext=pm。 case 39。 : pta=new Teacher_Assistant。 pnext=pta。 case 39。 : pmt=new Manager_Teacher。 pnext=pmt。 default : return。 cinch。 system(pause)。 while (p) { PLnext=pnext。 p=PLnext。 Person* p1。 cout\t請輸入你要查找的職工編號: 。 p1=PLnext。 while (p1) { if (p1ID==id) break。 //繼續(xù)向后查找 p1=p1next。 cout\t請確認(rèn)你輸入的編號是否正確!!!\nendl。 }
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1