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

正文內(nèi)容

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

2024-10-30 23:17本頁(yè)面
  

【正文】 ( 3) 職工工資排序: 計(jì)算個(gè)人所得稅 float tgrsds( float m) 定義變量: float sui1, sui2, sui3; float tmp; m=5000 假 真 計(jì)算 工資大于等于 5000 時(shí)的 個(gè)人所得稅 1000=m5000? 假 真 計(jì)算 工資在 10005000 之間 個(gè)人所得稅 M1000 假 真 不交稅 不交稅 新疆大學(xué)軟件學(xué)院《面向?qū)ο蟪绦蛟O(shè)計(jì)》 課程設(shè)計(jì)報(bào)告 14 ( 4)查找職工工資信息(為了滿(mǎn)足職工需求避免職工工資發(fā)放錯(cuò)誤,以便及時(shí)準(zhǔn)確的給職工進(jìn)行確認(rèn)與修改): ( 5)添加 與刪除 職工工資信息(一個(gè)工廠大多時(shí)候會(huì)伴隨有職工的加入與離開(kāi),這不得不要求我們的工資管理系統(tǒng)中要有一項(xiàng)精確嚴(yán)格的功能 。 //Used to Store The Name. char sex[N]。 //Used to Store The Gender. float paid[3]。 //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)體鏈表指針。 define LEN sizeof(struct worker) using namespace std。 void Pass()。 //Define A Global Variable Statistical Number of Employees. //*************************************************************** //Wage Management System //The List of Program: include iomanip 新疆大學(xué)軟件學(xué)院《面向?qū)ο蟪绦蛟O(shè)計(jì)》 課程設(shè)計(jì)報(bào)告 18 include iostream include fstream include include include includelimits include include define NULL 0 int const N=20。 void Menu()。 int n=0。 //Constructed Function. ~Information() 。 //The Establishment of The List. void output(worker *head)。 worker *insert(worker *head)。 worker *find(worker *head,long id)。 void paixu(worker *head)。 void save(worker *head)。 //Read The File Information. private: worker *p1,*p2,*p3,*head,st。 信息類(lèi),這里有職工的內(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***************************************************\n。 Information::~Information() { cout***************************************************\n。 cout***************************************************\n。 void zuozhe() { cout\n\t\t\tTheauthoroftheprogram:\n\n\t\t\tbany\n\n\t\t\t 新疆大學(xué)軟件學(xué)院《面向?qū)ο蟪绦蛟O(shè)計(jì)》 課程設(shè)計(jì)報(bào)告 20 TEL:15739576671。 cout\n\n\t\t\tIf you need to operate on the original information, you select 0 reads the file information.\nendl。 worker *Information::creat(void) { char ch[N]。 //Used to store the names of staff p1=p2=(worker *)malloc(LEN)。 coutName:。 head=NULL。 strcpy(p1name,ch)。 cinp1sex。//How to input format specification? cinp1id。 (1024,39。)。 新疆大學(xué)軟件學(xué)院《面向?qū)ο蟪绦蛟O(shè)計(jì)》 課程設(shè)計(jì)報(bào)告 21 cinp1id。 cinp1paid[0]。 (1024,39。)。 cinp1paid[0]。 cinp1paid[1]。 (1024,39。)。 cinp1paid[1]。 cinp1paid[2]。 (1024,39。)。 cinp1paid[2]。 //Calculate the total amount if(n==0) head=p1。 p2=p1。 //The number of employees n value plus 1. cout\n Name:。 //The stored input name into a character array Ch. } p2next=NULL。 } //The Establishment of The List Information 信息類(lèi)中鏈表的總體信息函數(shù),其內(nèi)容詳細(xì)具體而豐富。 void Information::output(worker *head) { system(cls)。 else { cout\n。 cout\n。 cout\n。 //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。 p1=p1next。 } } 信息類(lèi)中輸出類(lèi)的實(shí)現(xiàn),通過(guò)指針鏈表將信息按一定規(guī)范性打印出來(lái),此函數(shù)的實(shí)現(xiàn)使程序功能進(jìn)一步完善。 else return(1+count(headnext))。 worker *Information::insert( worker *head) { system(cls)。 p1=(worker *)malloc(LEN)。 cinp1id。 (1024,39。)。 cinp1id。 cinp1name。 cinp1sex。 cinp1paid[0]。 (1024,39。)。 新疆大學(xué)軟件學(xué)院《面向?qū)ο蟪绦蛟O(shè)計(jì)》 課程設(shè)計(jì)報(bào)告 25 cinp1paid[0]。 cinp1paid[1]。 (1024,39。)。 cinp1paid[1]。 cinp1paid[2]。 (1024,39。)。 cinp1paid[2]。//計(jì)算總工資 p2=head。p1next=NULL。amp。 //p3 指向原 p2指向的結(jié)點(diǎn) p2=p2next。 head=p1。 p1next=p2。 p1next=NULL。 //將職工人數(shù)加 1 cout\tYou enter the employee information has been successfully insertedendl。 新疆大學(xué)軟件學(xué)院《面向?qū)ο蟪绦蛟O(shè)計(jì)》 課程設(shè)計(jì)報(bào)告 27 } //Add the wage of staff function 信息類(lèi)中添加工人工資的函數(shù)的實(shí)現(xiàn),此函數(shù)的實(shí)現(xiàn)給工廠員工的流動(dòng)提供了記錄依據(jù),員工流動(dòng)給公司分發(fā)工資提供保障! worker *Information::cancel(worker *head,long id) { system(cls)。 } else { p1=head。amp。 p1=p1next。 else p2next=p1next。 n。 //將頭指針?lè)祷? } 新疆大學(xué)軟件學(xué)院《面向?qū)ο蟪绦蛟O(shè)計(jì)》 課程設(shè)計(jì)報(bào)告 28 } 刪除職工信息 ,類(lèi)成員函數(shù)在此得以實(shí)現(xiàn),員工離去后,為了便于管理,企業(yè)將離去員工信息刪除以便判斷是否招收新員工。 cout\tSalaryinformationpleaseinputmustbemodified\nendl。 //使 p1指向輸入的結(jié)點(diǎn) p1=head。amp。 //p2 指向原 p1 指向的結(jié)點(diǎn) p1后移一個(gè)結(jié)點(diǎn) } if(id==p1id) //如果要查找的職工編號(hào)是 p1 所指的職工編號(hào) { coutYou need to modify the employee information:\n。 cout|Id| |Name| |Sex| |Basic wage| |Overtime wage| |Other bonuses| |Total|\n。 coutsetw(6)p1id setw(8)p1name setw(12)p1sex setw(12)p1paid[0] setw(12)p1paid[1] setw(12)p1paid[2] setw(12)p1totalen
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1