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

正文內(nèi)容

09黃石理工c課程設(shè)計職工工資管理系統(tǒng)-閱讀頁

2024-09-25 10:46本頁面
  

【正文】 要修改的結(jié)點信息 getchar()。 } //查找職工信息 epployee *Information::find(epployee *head,long id) //定 義一個指向 struct epployee 的結(jié)構(gòu)體指針函數(shù) *find()用來查找職工信息 . { //system(cls)。 return(head)。 //否則將頭指針賦給 p1 while(id!=p1idamp。p1next!=NULL) //尋找結(jié)點當 p1 所指的職工編號不是輸入的職工編號并且 p1 所指的 next 指針不為空 { p1=p1next。 cout|編 號 | |姓 名 | |性別 | |基本工資 | |加班工資 | |其他獎金 | |總額 |\n。 coutsetw(6)p1id setw(10)p1name setw(10)p1sex setw(10)p1paid[0] setw(14)p1paid[1] setw(12)p1paid[2] setw(12)p1totalendl。 } else cout信息中沒有編號為 id的職工 .\n。 } } //定義 sort()函數(shù)將職工的工資總額從大到小排列并輸出 void Information::sort(epployee *head) { //system(cls)。 第 27 頁 共 34 頁 epployee *p[N]。 cout\n。 cout\n。 cout\n。 for(k=0。k++) { p[k]=p1。 } for(k=0。k++) //選擇排序法 for(j=k+1。j++) if(p[k]totalp[j]total) { p2=p[k]。 p[j]=p2。im。 cout\n。 float arg1=0,arg2=0,arg3=0。 } else { m=count(head)。 for(k=0。k++) { arg1+=p1paid[0]。 arg3+=p1paid[2]。 } arg1/=m。arg3/=m。 cout\n。 cout\n。 ofstream out(data,ios::out)。 while(head!=NULL) { outheadname\t headid\t\t headsex\t headpaid[0]\t headpaid[1]\t headpaid[2]\t headtotalendl。 } } //讀取文件的信息 epployee *Information::Read() { //system(cls)。 p1=p2=( epployee *)malloc(LEN)。 ifstream in(data,ios::out)。 if(i==0){cout data 文件中的數(shù)據(jù)為空 ,請先輸入數(shù)據(jù) !endl。} else { cout\n 原文件已保存的信息如下 :\n。 第 30 頁 共 34 頁 cout|姓 名 | |編 號 | |性別 | |基本工資 | |加班工資 | |其他獎金 | |總額 |\n。 for(。i) { p1=(epployee *)malloc(LEN)。 strcpy(p1name,)。 strcpy(p1sex,)。 p1paid[1]=[1]。 p1total=。 //如果是輸入第一組職工信息就將指針 p1 賦給指針 head else p2next=p1。 //將指針 p1 賦給指針 p2 n++。 cout ………………………………………………………………………………………………endl。 p2next=NULL。 } } //菜單 void Menu() { Information person。 int choice。 do{ cout\t※※※※※※※※※※※※※※※※※※※※※※※※※※※ endl。 cout\t※ ~v~ _ _ 歡迎進入職工成績統(tǒng)計管理 _ _ ~v~ ※ endl。 cout\t※※※※※※※※※※※※※※※※※※※※※※※※※※※ endl。 cout\t 相 關(guān) 操 作 選 項 endl。 第 32 頁 共 34 頁 cout\t※※※※※※※※※※※※※※※※※※※※※※※※※※※ endl。 cout\t※ ※ endl。 cout\t※ ※ endl。 cout\t※ ※ endl。 cout\t※ ※ endl。 cout\t※ ※ endl。 cout\t※ ※ endl。 cout\t※ ※ endl。 cout\t※ ※ endl。 cout\t※ ※ endl。 cout\t※ ※ endl。 cout 請輸入您的選擇 (09):。 while(choice0||choice9) { cout 對不起,您的輸入錯誤 !請輸入您的選擇 (09): 。 } switch(choice) { case 0: head=()。 case 1: head=()。 case 2: (head)。 case 3: (head)。 cout 參加工作的職工人數(shù)為 :(head)人\n\n。 case 4: cout 請輸入要查找的編號 :。 while(i0||i100000) { cout 對不起,您的輸入錯誤 !請重新輸入 : 。 } (head,i)。 case 5: head=(head)。 break。 cini。 cini。 (head)。 case 7: cout 請輸入要修改的編號 :。 while(i0||i100000) { cout 對不起,您的輸入錯誤 !請重新輸入 : 。 } (head,i)。 case 8: 第 35 頁 共 34 頁 cout信息已經(jīng)成功保存 !endl。 break。 break。 break。 } //管理員登陸 void Pass() { char UserName[15]。 int i=1。 cout\n\t 為保護職工成績信息 ,只有管理員才可以進行管理 !\n。 cout****************************************************************************\n。 cinUserName。 //超過 3 次則登陸失敗,退出系統(tǒng) i++。 cinUserName。 cinPassward。 //超過 3 次則登陸失敗 ,退出系統(tǒng) i++。 cinPassward。 } //主函數(shù) . int main(void) { system(color d )。 system(PAUSE)。 //系統(tǒng)清屏 Pass()。 system(cls)。 return
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1