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

正文內(nèi)容

職工工資管理系統(tǒng)課程設(shè)計論文-文庫吧資料

2025-07-04 05:35本頁面
  

【正文】 else { p1=head。 if(head==NULL) //若調(diào)用次函數(shù)以前的頭指針head為空 {coutThisisanemptytable,pleaseentertheinformationwithemployees!\n。} /************************修改職工數(shù)據(jù)***********************/ 由于種種原因,部分工人工資出現(xiàn)錯誤,他們會找到管理人員去核實,并索要其應(yīng)得工資,為此工資管理系統(tǒng)中添加了修改工資函數(shù),此函數(shù)使工資管理系統(tǒng)中有了修改功能。 //沒有想要修改的結(jié)點信息 getchar()。 //將輸入的其他獎金存放到p1所指結(jié)構(gòu)體的數(shù)組paid中 } p1total=p1paid[0]+p1paid[1]+p1paid[2]。cout sorryforyoutoinputerror! Please reenter 0~100000 numerical: 。\n39。 while((p1paid[2])0||(p1paid[2])100000) { () 。 //將輸入的加班工資存放到p1所指結(jié)構(gòu)體的數(shù)組paid中 } cout Other bonuses:。cout sorryforyoutoinputerror! Please reenter 0~100000 numerical: 。\n39。 while((p1paid[1])0||(p1paid[1])100000) { () 。 //將輸入的基本工資存放到p1所指結(jié)構(gòu)體的數(shù)組paid中 } cout Overtime wage:。cout sorryforyoutoinputerror! Please reenter 0~100000 numerical: 。\n39。 while((p1paid[0])0||(p1paid[0])100000) { () 。 cout Basic wage:。 //將輸入的姓名存放到結(jié)構(gòu)體名為p1的數(shù)組name中 cout Sex:。 //將輸入的編號存放到p1所指結(jié)構(gòu)體的數(shù)組id中 } cout Name:。cout sorryforyoutoinputerror! Please reenter 0~100000 numerical: 。\n39。 while((p1id)0||(p1id)100000) { () 。 cout Id:。 coutsetw(6)p1id setw(8)p1name setw(12)p1sex setw(12)p1paid[0] setw(12)p1paid[1] setw(12)p1paid[2] setw(12)p1totalendl。 cout|Id| |Name| |Sex| |Basic wage| |Overtime wage| |Other bonuses| |Total|\n。 //p2指向原p1指向的結(jié)點p1后移一個結(jié)點 } if(id==p1id) //如果要查找的職工編號是p1所指的職工編號 { coutYou need to modify the employee information:\n。amp。 //使p1指向輸入的結(jié)點 p1=head。cout\tSalaryinformationpleaseinputmustbemodified\nendl。 //將頭指針返回 }}刪除職工信息,類成員函數(shù)在此得以實現(xiàn),員工離去后,為了便于管理,企業(yè)將離去員工信息刪除以便判斷是否招收新員工。 n。 else p2next=p1next。 p1=p1next。amp。 } else { p1=head。} //Add the wage of staff function 信息類中添加工人工資的函數(shù)的實現(xiàn),此函數(shù)的實現(xiàn)給工廠員工的流動提供了記錄依據(jù),員工流動給公司分發(fā)工資提供保障!worker *Information::cancel(worker *head,long id) { system(cls)。 //將職工人數(shù)加1 cout\tYou enter the employee information has been successfully insertedendl。 p1next=NULL。 p1next=p2。 head=p1。 //p3指向原p2指向的結(jié)點 p2=p2next。amp。p1next=NULL。//計算總工資 p2=head。cinp1paid[2]。)。 (1024,39。 cinp1paid[2]。cinp1paid[1]。)。 (1024,39。 cinp1paid[1]。cinp1paid[0]。)。 (1024,39。 cinp1paid[0]。 cinp1sex。 cinp1name。 cinp1id。)。 (1024,39。 cinp1id。 p1=(worker *)malloc(LEN)。worker *Information::insert( worker *head) { system(cls)。 else return(1+count(headnext))。 }} 信息類中輸出類的實現(xiàn),通過指針鏈表將信息按一定規(guī)范性打印出來,此函數(shù)的實現(xiàn)使程序功能進一步完善。 p1=p1next。 //The head pointer is assigned to p. do { coutp1id setw(8)p1name setw(12)p1sex setw(12)p1paid[0] setw(12)p1paid[1] setw(12)p1paid[2] setw(12)p1totalendl。 cout\n。 cout\n。 else { cout\n。void Information::output(worker *head) { system(cls)。 }//The Establishment of The List Information信息類中鏈表的總體信息函數(shù),其內(nèi)容詳細具體而豐富。 //The stored input name into a character array Ch. } p2next=NULL。 //The number of employees n value plus 1. cout\n Name:。 p2=p1。 //Calculate the total amount if(n==0) head=p1。 cinp1paid[2]。)。 (1024,39。 cinp1paid[2]。 cinp1paid[1]。)。 (1024,39。 cinp1paid[1]。 cinp1paid[0]。)。 (1024,39。 cinp1paid[0]。 cinp1id。)。 (1024,39。//How to input format specification? cinp1id。 cinp1sex。 strcpy(p1name,ch)。 head=NULL。 coutName:。 //Used to store the names of staff p1=p2=(worker *)malloc(LEN)。worker *Information::creat(void) { char ch[N]。 cout\n\n\t\t\tIf you need to operate on the original information, you select 0 reads the file information.\nendl。void zuozhe(){cout\n\t\t\tTheauthoroftheprogram:\n\n\t\t\tbany\n\n\t\t\tTEL:15739576671。 cout***************************************************\n。Information::~Information(){ cout***************************************************\n。 cout***************************************************\n。信息類,這里有職工的內(nèi)嵌信息由職工指針以及各種職工工資計算與職工的信息添加與顯示函數(shù),有職工工資儲存函數(shù)、職工人數(shù)統(tǒng)計函數(shù)、職工及其工資信息構(gòu)造函數(shù)、職工及其工資信息析構(gòu)函數(shù)、刪除職工工資與添加職工工資信息函數(shù)、修改職工工資與職工工資排序函數(shù)以及職工工資讀取函數(shù)Information::Information() { cout***************************************************\n。 //Read The File Information.private: worker *p1,*p2,*p3,*head,st。 void save(worker *head)。 void paixu(worker *head)。 worker *find(worker *head,long id)。 worker *insert(worker *head)。 //The Establishment of The List. void output(worker *head)。 //Constructed Function. ~Information() 。int n=0。 void Menu()。 //Define A Global Variable Statistical Number of Employees.//***************************************************************//Wage Management System//The List of Program:include iomanipinclude iostreaminclude fstreaminclude include include includelimitsincludeincludedefine NULL 0int const N=20。 void Pass()。define LEN sizeof(struct worker)using namespace std。結(jié)構(gòu)體建立,職工結(jié)構(gòu)體內(nèi)含職工名字(字符型)、職工性別(字符型)、職工代碼(長整形)、儲存職工工資的數(shù)組(浮點型)、職工總工資(整形)、職工結(jié)構(gòu)體鏈表指針。 //Used to Store The Total Wages struct worker *next。 //Used to Store The Gender. float paid[3]。 //Used to Store The Name. char sex[N]。 (1)初始屏幕(圖二)如下(系統(tǒng)正常運行的基礎(chǔ),源程序得以運行出現(xiàn)用戶開始界面):(圖(2))程序界面下方顯示輸入管理員名稱,我們在此只需輸入高應(yīng)允即可進入密碼輸入階段,(1)信息(圖(1)) (2
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1