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

正文內(nèi)容

公司人事管理系統(tǒng)(參考版)

2025-04-10 13:00本頁(yè)面
  

【正文】 當(dāng)自己身邊沒有老師同學(xué)學(xué)長(zhǎng)時(shí),百度成了自己的良師益友。一個(gè)人想法也許是不好的但是通過討論之后從中獲益之處絕對(duì)讓人吃驚。總而言之,言而總之。雖然這次的課程設(shè)計(jì)評(píng)價(jià)不算太高,但是自己仍然很高興。這次寫課程設(shè)計(jì)是對(duì)自己c++學(xué)習(xí)查漏補(bǔ)缺最好不過了。所以說,做事一定要踏實(shí),不能偷懶。但是別人運(yùn)行我的程序后建議也加一個(gè)按照姓名查詢的函數(shù),考慮到編號(hào)查詢和姓名查詢非常多重復(fù)的地方,一樣是先遍歷,不同的唯有判斷的條件,于是偷懶沒有加。就拿一個(gè)簡(jiǎn)單的遍歷查詢功能來說,這次系統(tǒng)要求的員工編號(hào)是自動(dòng)生成的也就是唯一的。最終成功了也是莫大的鼓舞。但是到了今年c++和C語(yǔ)言幾乎差不多,為了今年有所收獲于是拾起了去年的漏子。第五點(diǎn),就是勤于思考,不走近道。原本課本上感覺一聽就會(huì)的東西在上機(jī)運(yùn)行的時(shí)候成了攔路虎。第四點(diǎn),就是在多繼承環(huán)境下的構(gòu)造函數(shù)如何正確初始化。在學(xué)長(zhǎng)的幫助下利用一個(gè)字符串變量作為中間量再把這個(gè)中間字符串用構(gòu)造函數(shù)初始化,結(jié)果編譯器正常運(yùn)行了。再修改的時(shí)候把職務(wù)改成了string類型,結(jié)果string是個(gè)類,其大小我沒法解決。比如這次的職務(wù)類型,我一開始選的是char字符串類型,直接把漢字的職務(wù)用構(gòu)造函數(shù)初始化了。第三點(diǎn),考慮到顯示函數(shù)的需要得調(diào)用返回函數(shù)。首先得對(duì)數(shù)據(jù)進(jìn)行綜合判斷是private類,protected類還是public類,這對(duì)于以后數(shù)據(jù)重新利用也就是繼承非常重要。輸入9按照編號(hào)查詢員工的信息。輸入6是修改職員信息,下面選擇第一個(gè)姓名進(jìn)行修改查看姓名是否修改成功輸入7是對(duì)員工的工資從小到大進(jìn)行排序。當(dāng)選擇的是y時(shí)就會(huì)回到菜單選擇輸入3是刪除,刪除按照動(dòng)態(tài)生成的編號(hào),比較方便,更準(zhǔn)確。 }5 測(cè)試的步驟與內(nèi)容下面的內(nèi)容為公司人事管理系統(tǒng)運(yùn)行時(shí)界面展示,老板或職員不同的身份可以根據(jù)菜單提示進(jìn)行選擇性輸入,系統(tǒng)會(huì)自動(dòng)調(diào)用不同的功能函數(shù)實(shí)現(xiàn)不同用戶所需,滿足多種身份人的要求,為使用本系統(tǒng)的所有用戶提供最佳的服務(wù)。 ()。word1[i],sizeof(char))。i20。 } else { ofstream outfile1(,ios::binary)。 cinword2。 cinword1。 if(strcmp(name,File_pass)!=0) { cout無該用戶,請(qǐng)重試!!!endl。 } cout請(qǐng)輸入需要修改的用戶名:endl。i++) { ((char *)amp。 for(int i=0。 ifstream infile(,ios::binary)。 ()。 MEU1()。 if(strcmp(word,File_word)!=0) { cout\t\t\t密碼錯(cuò)誤,請(qǐng)重新登陸!!!endl。 } else { cout\t\t\t請(qǐng)輸入密碼:endl。 cinpass。File_word[i],sizeof(char))。File_pass[i],sizeof(char))。i20。 } else { char File_pass[20],File_word[20],pass[20],word[20]。 ifstream infile1(,ios::binary)。}登錄函數(shù)void Login(){ system(cls)。 } ()。word1[i],sizeof(char))。pass[i],sizeof(char))。i20。 if(strcmp(word1,word2)!=0) { cout\t\t\t兩次密碼不一致,請(qǐng)重新注冊(cè)?。。ndl。 cout\t\t\t請(qǐng)?jiān)俅屋斎朊艽aendl。 cout\t\t\t請(qǐng)輸入密碼endl。 cout\t\t\t請(qǐng)輸入用戶注冊(cè)賬號(hào)endl。 char pass[20],word1[20],word2[20]。 ofstream outfile(,ios::binary)。 return 0。 break。:exit(1)。 case39。:MEU2()。 case39。:MEU3()。 switch(choice) { case39。 char choice。 cout\t\t\t2 普通員工 endl。 }}菜單函數(shù)int MEU(){ while(1) { cout\t\t\t請(qǐng)選擇當(dāng)前身份:endl。039。 break。339。 break。239。 break。139。 cinchoice。 cout\t\t\t3 修改賬號(hào) endl。 cout\t\t\t1 注冊(cè)賬號(hào) endl。 char choice。) break。 } if(choice==39。: ()。 case39。: ()。 case 39。: ()。 switch(choice) { case 39。 cout0\t\t\t退出員工身份endl。 cout2\t\t\t公司職員狀況endl。 while(1) { cout\t\t\t請(qǐng)選擇功能:endl。 ()。 char choice。) { break。 if(choice==39。 break。 break。039。 break。939。 break。839。 break。739。 break。639。 break。539。 break。439。 break。339。 break。239。 break。139。 cinchoice。 gotoxy(28,11)。 cout\t\t\t9 查找員工信息\t\t\tendl。 cout\t\t\t7 排序職員信息\t\t\tendl。 cout\t\t\t5 讀取職員信息\t\t\tendl。 cout\t\t\t3 刪除職員信息\t\t\tendl。 cout\t\t\t1 增加職員信息\t\t\tendl。 } } system(cls)。n,sizeof(int) )。) { n=1515900。||choice==39。 if(choice==39。 cout\t\t\t是否重新建立人員信息:endl。 ()。y39。Y39。 cinchoice。in) { cout\t\t\t檢測(cè)到有保存的信息,是否加載N/Yendl。 if(infileamp。 ifstream in()。 boss ba。 if(type==121) break。 cintype。 pp=ppnext。 else { cout姓名 \t\t 編號(hào) \t\t 職務(wù)\t\t\t性別 \t\t工資 endl。 while(1) { employee *pp=headnext。}顯示函數(shù)void boss::show(){ char type。 if(type==110) break。 cintype。 write_file()。n,sizeof(int) )。 if(q==NULL) { cout errorendl。 p1next=p2。 // break。 break。 strcpy(lev,技術(shù)經(jīng)理)。 cout\t\t\t輸入提成:endl。 cout\t\t\t輸入性別:endl。: cout\t\t\t輸入姓名:endl。 case 39。 p2=new Technical(name,lev,n++,sex,4,sale_num)。 cinsale_num。 cinsex。 cinname。439。 break。 strcpy(lev,銷售經(jīng)理)。 cout\t\t\t請(qǐng)輸入銷售提成:endl。 cout\t\t\t輸入性別:endl。: cout\t\t\t輸入姓名:endl。 case 39。 p2=new salesman(name,lev,n++,sex,2,sale_num,sale_object)。 cinsale_object。 cinsale_num。 cinsex。 cinname。239。 break。 strcpy(lev,公司文書)。 cout\t\t\t輸入性別:endl。: cout\t\t\t輸入姓名:endl。 switch(type) { case 39。 system(cls)。 cout\t\t1 公司文書 2 銷售人員 3 銷售經(jīng)理 4 技術(shù)人員 5 技術(shù)經(jīng)理endl。 char sex。 char name[20]。 while(p1next!=NULL) { p1=p1next。 p1=head。 ()。 ((char *)amp。}添加職員函數(shù)void boss::creat(){ while(true) { system(cls)。}創(chuàng)建空頭函數(shù)void boss::creat_head(){ head=new employee。 ()。 } ++i。 p2=new TechnicalManager(name,level,number,sex,5,y)。 break。 case 4:size=sizeof(Technical(name,level,number,sex,flage,x))。 p2=new SalesManager(name,level,number,sex,3,y,x)。 break。 case 2:size=sizeof(salesman(name,level,number,sex,flage,x,y))。 p2=new employee(name,level,number,sex,1)。flage),sizeof(int))。 } int flage。 if(i0) { p1next=p2。 int i=0。 head=p1。 endl。 ifstream in()。 float x,y。//性別 float salary。//編號(hào) char level[20]。 char name[20]。 system(PAUSE)。 p1=p1next。 break。 p1sh
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1