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

正文內(nèi)容

職工工資管理系統(tǒng)課程設(shè)計(jì)-文庫(kù)吧

2025-04-03 00:46 本頁面


【正文】 的添加}(表二) {這個(gè)表為后來由于職工的辭職,而做的信息變更,刪除職工信息后的表格}(6)職工工資管理系統(tǒng)中職工工資的修改功能//The Structure Definition An Employee Information.struct worker{ char name[N]。 //Used to Store The Name. char sex[N]。 //Used to Store The Staff Position. long id。 //Used to Store The Gender. float paid[3]。 //Used to Store The Wage. int total。 //Used to Store The Total Wages struct worker *next。}。結(jié)構(gòu)體建立,職工結(jié)構(gòu)體內(nèi)含職工名字(字符型)、職工性別(字符型)、職工代碼(長(zhǎng)整形)、儲(chǔ)存職工工資的數(shù)組(浮點(diǎn)型)、職工總工資(整形)、職工結(jié)構(gòu)體鏈表指針。//***************************************************************//Wage Management System//The List of Program:include iomanipinclude iostreaminclude fstreaminclude include include includelimitsincludeincludedefine NULL 0int const N=20。define LEN sizeof(struct worker)using namespace std。 void Menu()。 void Pass()。int n=0。 //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。define LEN sizeof(struct worker)using namespace std。 void Menu()。 void Pass()。int n=0。 //Define A Global Variable Statistical Number of Employees.程序的頭文件信息//The Worker Class.class Information{ public: Information() 。 //Constructed Function. ~Information() 。 //The Destructor. worker *creat()。 //The Establishment of The List. void output(worker *head)。 //Display Information Workers. int count(worker *head)。 worker *insert(worker *head)。 worker *cancel(worker *head,long id)。 worker *find(worker *head,long id)。 worker *modify(worker *head,long id)。 void paixu(worker *head)。 void average(worker *head)。 void save(worker *head)。 //Save The File Information. worker *Read()。 //Read The File Information.private: worker *p1,*p2,*p3,*head,st。}。信息類,這里有職工的內(nèi)嵌信息由職工指針以及各種職工工資計(jì)算與職工的信息添加與顯示函數(shù),有職工工資儲(chǔ)存函數(shù)、職工人數(shù)統(tǒng)計(jì)函數(shù)、職工及其工資信息構(gòu)造函數(shù)、職工及其工資信息析構(gòu)函數(shù)、刪除職工工資與添加職工工資信息函數(shù)、修改職工工資與職工工資排序函數(shù)以及職工工資讀取函數(shù)Information::Information() { cout***************************************************\n。 cout Wele to Use The Wage Management System\n。 cout***************************************************\n。 }信息類中構(gòu)造函數(shù)的實(shí)現(xiàn)。Information::~Information(){ cout***************************************************\n。cout Thank You for Weling to Use The Wage Management System\n。 cout***************************************************\n。 }信息類中析構(gòu)函數(shù)的實(shí)現(xiàn)。void zuozhe(){cout\n\t\t\tTheauthoroftheprogram:\n\n\t\t\tbany\n\n\t\t\tTEL:15739576671。 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!!!。 cout\n\n\t\t\tIf you need to operate on the original information, you select 0 reads the file information.\nendl。}此段為程序的作者信息顯示,在此無詳細(xì)說明,也不包含在信息類中。worker *Information::creat(void) { char ch[N]。n=0。 //Used to store the names of staff p1=p2=(worker *)malloc(LEN)。 cout Please Establish The Staff Information Table,The Name at The End of The Input to Bond!endl。 coutName:。 cinch。 head=NULL。 //The initial pointer to head Fu while (strcmp(ch,)!=0) { p1=(worker *)malloc(LEN)。 strcpy(p1name,ch)。 cout Sex:。 cinp1sex。 cout Id:。//How to input format specification? cinp1id。 while((p1id)0||(p1id)100000) { () 。 (1024,39。\n39。)。 cout sorry for you to input error! Please reenter 0~100000 numerical: 。 cinp1id。 } cout Basic wage:。 cinp1paid[0]。 while((p1paid[0])0||(p1paid[0])100000) { () 。 (1024,39。\n39。)。 cout sorry for you to input error! Please reenter 0~100000 numerical: 。 cinp1paid[0]。 } cout Overtime Wage:。 cinp1paid[1]。 while((p1paid[1])0||(p1paid[1])100000) { () 。 (1024,39。\n39。)。 cout sorry for you to input error! Please reenter 0~100000 numerical: 。 cinp1paid[1]。 } cout Other Bonuses:。 cinp1paid[2]。 while((p1paid[2])0||(p1paid[2])100000) { () 。 (1024,39。\n39。)。 cout sorry for you to input error! Please reenter 0~100000 numerical: 。 cinp1paid[2]。 } p1total=p1paid[0]+p1paid[1]+p1paid[2]。 //Calculate the total amount if(n==0) head=p1。 else p2next=p1。 p2=p1。 n++。 //The number of employees n value plus 1. cout\n Name:。 cinch。 //The stored input name into a character array Ch. } p2next=NULL。 return (head)。 }//The Establishment of The List Information信息類中鏈表的總體信息函數(shù),其內(nèi)容詳細(xì)具體而豐富。這也是程序完成的一個(gè)關(guān)鍵環(huán)節(jié)。void Information::output(worker *head) { system(cls)。 if(head==NULL) cout This Is An Empty Table, Please Enter The Information Workers!\n。 else { cout\n。 cout *Salary Information Table*\n。 cout\n。 cout|Id |Name| |Sex| |Basic wage| |Overtime wage| |other bonuses| |Total|\n。 cout\n。 p1=head。 //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。 p1=p1next。 } while(
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1