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

正文內(nèi)容

職工工資管理系統(tǒng)課程設(shè)計-在線瀏覽

2025-06-05 00:46本頁面
  

【正文】 total。}。//***************************************************************//Wage Management System//The List of Program:include iomanipinclude iostreaminclude fstreaminclude include include includelimitsincludeincludedefine NULL 0int const N=20。 void Menu()。int n=0。define LEN sizeof(struct worker)using namespace std。 void Pass()。 //Define A Global Variable Statistical Number of Employees.程序的頭文件信息//The Worker Class.class Information{ public: Information() 。 //The Destructor. worker *creat()。 //Display Information Workers. int count(worker *head)。 worker *cancel(worker *head,long id)。 worker *modify(worker *head,long id)。 void average(worker *head)。 //Save The File Information. worker *Read()。}。 cout Wele to Use The Wage Management System\n。 }信息類中構(gòu)造函數(shù)的實現(xiàn)。cout Thank You for Weling to Use The Wage Management System\n。 }信息類中析構(gòu)函數(shù)的實現(xiàn)。 cout\n\n\t\t\tMade By ++\n\n\t\t\t July sixth 2013\n\n\t\t\t Press the Enter key to enter the login interface!!!。}此段為程序的作者信息顯示,在此無詳細說明,也不包含在信息類中。n=0。 cout Please Establish The Staff Information Table,The Name at The End of The Input to Bond!endl。 cinch。 //The initial pointer to head Fu while (strcmp(ch,)!=0) { p1=(worker *)malloc(LEN)。 cout Sex:。 cout Id:。 while((p1id)0||(p1id)100000) { () 。\n39。 cout sorry for you to input error! Please reenter 0~100000 numerical: 。 } cout Basic wage:。 while((p1paid[0])0||(p1paid[0])100000) { () 。\n39。 cout sorry for you to input error! Please reenter 0~100000 numerical: 。 } cout Overtime Wage:。 while((p1paid[1])0||(p1paid[1])100000) { () 。\n39。 cout sorry for you to input error! Please reenter 0~100000 numerical: 。 } cout Other Bonuses:。 while((p1paid[2])0||(p1paid[2])100000) { () 。\n39。 cout sorry for you to input error! Please reenter 0~100000 numerical: 。 } p1total=p1paid[0]+p1paid[1]+p1paid[2]。 else p2next=p1。 n++。 cinch。 return (head)。這也是程序完成的一個關(guān)鍵環(huán)節(jié)。 if(head==NULL) cout This Is An Empty Table, Please Enter The Information Workers!\n。 cout *Salary Information Table*\n。 cout|Id |Name| |Sex| |Basic wage| |Overtime wage| |other bonuses| |Total|\n。 p1=head。 cout\n。 } while(p1!=NULL)。int Information::count(struct worker *head) { if(head==NULL)return(0)。 }//Number of staff and workers in the statistical function. 職工人員的記錄,用于記錄公司內(nèi)員工人數(shù),以便于給工人分發(fā)工資。 cout\tPlease enter new information wages of staff and workers\nendl。 //使p1指向插入的新結(jié)點 cout Id:。 while((p1id)0||(p1id)100000) { () 。\n39。 cout Sorry for you to input error! Please reenter 0~100000 numerical: 。 //將輸入的編號存放到p1所指結(jié)構(gòu)體的數(shù)組id中 } cout Name:。 //將輸入的姓名存放到結(jié)構(gòu)體名為p1的數(shù)組name中 cout Sex:。 cout Basic wage:。 while((p1paid[0])0||(p1paid[0])100000) { () 。\n39。 cout Sorry for you to input error! Please reenter 0~100000 numerical: 。 //將輸入的基本工資存放到p1所指結(jié)構(gòu)體的數(shù)組paid中 } cout Overtime wage:。 while((p1paid[1])0||(p1paid[1])100000) { () 。\n39。 cout Sorry for you to input error! Please reenter 0~100000 numerical: 。 //將輸入的加班工資存放到p1所指結(jié)構(gòu)體的數(shù)組paid中 } cout other bonuses:。 while((p1paid[2])0||(p1paid[2])100000) { () 。\n39。 cout Sorry for you to input error! Please reenter 0~100000 numerical: 。 //將輸入的其他獎金存放到p1所指結(jié)構(gòu)體的數(shù)組paid中 } p1total=p1paid[0]+p1paid[1]+p1paid[2]。 //將頭指針賦給p2 if(head==NULL) //若沒調(diào)用次函數(shù)以前的頭指針head為空 { head=p1。 } //則將p1賦給頭指針head并將p1所指結(jié)構(gòu)體成員指針next賦空值 else { while(( p1id p2id ) amp。 (p2next !=NULL )) { p3=p2。 } //p2后移一個結(jié)點 if(p1id=p2id) { if(head==p2) { p1next=head。 } //插入到第一個結(jié)點之前 else { p3next=p1。 } //插入到p3所指結(jié)點之后 } else { p2next=p1。 } //插入到尾結(jié)點之后 } n++。 return (head)。 if(head==NULL) //若調(diào)用次函數(shù)以前的頭指針head為空 { return(head)。 //否則將頭指針賦給p1 while(id!=p1idamp。p1next!=NULL) { p2=p1。 } //p2指向原p1指向的結(jié)點p1后移一個結(jié)點 if(id==p1id) //如果輸入的職工編號是p1所指的職工編號//結(jié)點找到后刪除 { if(p1==head) head=p1next。 cout Delete the id ofidworker is\n。 //將職工人數(shù)減1 } return(head)。worker *Information::modify(worker *head,long id){ system(cls)。 p1=(worker *)malloc(LEN)。 //否則將頭指針賦給p1 while(id!=p1idamp。p1next!=NULL) { p1=p1next。 cout\n。 cout\n。 cout\n。 cinp1id。 (1024,39。)。cinp1id。cinp1name。 cinp1sex。 cinp1paid[0]。 (1024,39。)。cinp1paid[0]。 cinp1paid[1]。 (1024,39。)。cinp1paid[1]。 cinp1paid[2]。 (1024,39。)。cinp1paid[2]。 //計算總分 } else coutnoneedtomodifythenumberofinformationintheididof workers\n\n。 return(head)。worker *Information::find(worker *head,long id) { system(cls)。 return(head)。 //否則將頭指針賦給p1 while(id!=p1idamp。p1next!=NULL)//尋找結(jié)點當(dāng)p1所指的職工編號不是輸入的職工編號并且p1所指的next指針不為空 { p1=p1next。cout|Id| |Name| |Sex| |Basic wage| |Overtime wage| |other bonuses| |Total|\n。 coutsetw(6)p1id setw(10)p1name setw(10)p1sex setw(10)p1paid[0] setw(10)p1paid[1] setw(12)p1paid[2] setw(12)p1totalendl。 } elsecoutTherearenoworkerswhoseidisidof workers.\n。 }}//查找職工信息職工工資信息查找函數(shù)是職工工資
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1