![[精品論文]人事管理系統(tǒng)課程設(shè)計(jì)_第1頁(yè)](http://file.renrendoc.com/FileRoot1/2019-7/13/35142b7c-e2b2-4be5-8388-258a6c1c3538/35142b7c-e2b2-4be5-8388-258a6c1c35381.gif)
![[精品論文]人事管理系統(tǒng)課程設(shè)計(jì)_第2頁(yè)](http://file.renrendoc.com/FileRoot1/2019-7/13/35142b7c-e2b2-4be5-8388-258a6c1c3538/35142b7c-e2b2-4be5-8388-258a6c1c35382.gif)
![[精品論文]人事管理系統(tǒng)課程設(shè)計(jì)_第3頁(yè)](http://file.renrendoc.com/FileRoot1/2019-7/13/35142b7c-e2b2-4be5-8388-258a6c1c3538/35142b7c-e2b2-4be5-8388-258a6c1c35383.gif)
![[精品論文]人事管理系統(tǒng)課程設(shè)計(jì)_第4頁(yè)](http://file.renrendoc.com/FileRoot1/2019-7/13/35142b7c-e2b2-4be5-8388-258a6c1c3538/35142b7c-e2b2-4be5-8388-258a6c1c35384.gif)
![[精品論文]人事管理系統(tǒng)課程設(shè)計(jì)_第5頁(yè)](http://file.renrendoc.com/FileRoot1/2019-7/13/35142b7c-e2b2-4be5-8388-258a6c1c3538/35142b7c-e2b2-4be5-8388-258a6c1c35385.gif)
已閱讀5頁(yè),還剩46頁(yè)未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
畢業(yè)設(shè)計(jì)課程定做 QQ1714879127課程設(shè)計(jì) 人 事 管 理 系 統(tǒng)目 錄一、需求分析:錯(cuò)誤!未定義書(shū)簽。二、程序的主要功能:錯(cuò)誤!未定義書(shū)簽。三、程序運(yùn)行平臺(tái):錯(cuò)誤!未定義書(shū)簽。四、 系統(tǒng)總框架圖錯(cuò)誤!未定義書(shū)簽。五、程序類(lèi)的說(shuō)明:錯(cuò)誤!未定義書(shū)簽。六、模塊分析錯(cuò)誤!未定義書(shū)簽。七、比較有特色的函數(shù)錯(cuò)誤!未定義書(shū)簽。八、存在的不足與對(duì)策錯(cuò)誤!未定義書(shū)簽。九、程序源代碼錯(cuò)誤!未定義書(shū)簽。一、需求分析在現(xiàn)代化的企業(yè)管理中,人事管理系統(tǒng)有著十分重要的作用,然而,用大型軟件系統(tǒng)來(lái)于小型的企事業(yè)單位,不啻于“殺雞用牛刀”,因此小型的的軟件對(duì)于這種單位自然有十分重要作用。某小型企業(yè)出與這種目的制作了這個(gè)人事管理系統(tǒng)二、程序的主要功能1、添加功能:添加一個(gè)職員的基本信息,包括姓名,工作證號(hào),身份證號(hào)碼,生日,家庭住址,家庭電話(huà)號(hào)碼,部門(mén),薪水,性別,職務(wù)、2、刪除功能:能夠?qū)σ粋€(gè)職員的信息進(jìn)行刪除按姓名進(jìn)行刪除、3、除全部職員信息:能夠?qū)τ谌柯殕T的信息進(jìn)行刪除!4、顯示功能:顯示所有職員的主要信息包括姓名,身份證號(hào)碼,工作證號(hào),生日、!5、查找功能:根據(jù)你鍵入的職員姓名,顯示其詳細(xì)信息!6、修改功能:對(duì)職員的信息進(jìn)行修改。三、程序運(yùn)行平臺(tái)BC30。具體操作如下:首先進(jìn)入bc,打開(kāi)原代碼person.cpp,然后進(jìn)入原程序,接著選擇Options下的Linker,選擇Libraries,彈出一個(gè)對(duì)話(huà)框,再選擇Graphics library,然后確認(rèn)即可!四、 系統(tǒng)總框架圖主 函 數(shù)添加信息刪除信息清空信息修改信息顯示信息查找信息 五、程序類(lèi)的說(shuō)明 Date類(lèi)的聲明class Date public: Date(); /Date類(lèi)的構(gòu)造函數(shù) void set(); /Date類(lèi)的設(shè)置函數(shù) friend istream & operator (istream &in,Date &da); /重載“” friend ostream & operator (ostream &out,Date d); /重載“” void operator =(Date d); 重載“=” private: int year; /年 int month; /月 int day; /日; people類(lèi)的聲明class people public:people(); /people類(lèi)的構(gòu)造函數(shù)friend ostream & operator (istream &in,people &p); /重載“”void operator =(people p); /重載“=”void set(); /people類(lèi)的設(shè)置函數(shù)char *getname(); /獲得姓名char *getsex(); /獲得性別char *getid(); /獲得idchar *gettelephone(); /獲得電話(huà)號(hào)碼Date getbirthday(); /獲得生日char *getnumber(); /獲得工作證號(hào)void setname(char *); /設(shè)置姓名void setsex(char *); /設(shè)置性別void setid(char *); /設(shè)置id void setnumber(char *); /設(shè)置工作證號(hào)void setaddress(char *); /設(shè)置家庭地址void settelephone(char *); /設(shè)置電話(huà)號(hào)碼void setbirthday(Date); /設(shè)置出生日期void setsalary(char *); /設(shè)置薪水void setpost(char *); /設(shè)置職務(wù)void setdepartment(char *); /設(shè)置工作部門(mén)protected:char name20; /姓名char sex5; /性別char id20; /身份證號(hào)char telephone10; /電話(huà)號(hào)碼Date birthday; /出生日期char number20; /工作證號(hào)char address100; /家庭地址char salary10; /薪水char post20; /職務(wù)char department30; /工作部門(mén)public:people *next; /下一個(gè)節(jié)點(diǎn)people *previous; /上一個(gè)節(jié)點(diǎn); cclass peoplelist:public people public: peoplelist(); /peoplelist類(lèi)的構(gòu)造函數(shù) void set(); /peoplelist類(lèi)的設(shè)置函數(shù)void add(); /添加函數(shù)void display(); /顯示函數(shù) void find(); /查找函數(shù)void deleteAll(); /清空函數(shù)void save(); /寫(xiě)入文件void load(); /讀進(jìn)內(nèi)存void modify(); /修改函數(shù)void remove(); /刪除函數(shù)private:people *start; /鏈表頭people *end; /鏈表尾;六、模塊分析1. 添加模塊系統(tǒng)將提示用戶(hù)輸入新添加的職員的信息,插入在鏈表中2. 顯示模塊顯示模塊將輸出所有職員的主要資料 。3. 修改模塊首先由用戶(hù)輸入要修改的職員的姓名,然后系統(tǒng)用修改函數(shù)查找,顯示該名職員的資料,然后系統(tǒng)提示用戶(hù)輸入需要修改的項(xiàng)目和新的資料。4. 查找模塊首先由用戶(hù)輸入要查找的職員姓名,然后系統(tǒng)用查找函數(shù)查找,然后系統(tǒng)就調(diào)用輸出函數(shù),輸出所查找的職員資料。5. 刪除模塊首先由用戶(hù)輸入要?jiǎng)h除的單個(gè)職員姓名,然后調(diào)用刪除函數(shù),刪除該名職員的資料。6. 清空模塊系統(tǒng)將會(huì)把所有職員的資料全部刪除,將鏈表清空。七、比較有特色的函數(shù)void peoplelist:remove()textmode(C80);textbackground(BLUE);clrscr();gotoxy(10,10);coutn;clrscr();people *temp;temp=start;while(temp)if(strcmp(temp-getname(),n)=0)break;if(temp=NULL)gotoxy(20,10);coutthe student name dosenot exist!previous)/刪除的節(jié)點(diǎn)不是第一個(gè) temp-previous-next=temp-next; if(temp-next)/刪除的節(jié)點(diǎn)不是最后一個(gè) temp-next-previous=temp-previous;else end=temp-previous; else/刪除的節(jié)點(diǎn)是第一個(gè) if(temp-next)/刪除的節(jié)點(diǎn)不是最后一個(gè) temp-next-previous=NULL; start=temp-next; elsestart=end=NULL;/刪除節(jié)點(diǎn)是最后一個(gè),鏈表只有一個(gè)節(jié)點(diǎn)gotoxy(30,10); coutremove succeed!endl;getch();八、存在的不足與對(duì)策由于設(shè)計(jì)者水平有限及時(shí)間等方面的原因,該系統(tǒng)的功能比較簡(jiǎn)單,查錯(cuò)能力也不強(qiáng),對(duì)于一些不正確的輸入可能會(huì)造成一些難以預(yù)料的結(jié)果,因此,請(qǐng)不要故意輸入錯(cuò)誤信息。這些不足請(qǐng)老師多多諒解。今后設(shè)計(jì)者會(huì)更多的學(xué)習(xí)編程技巧,不斷的提高程序設(shè)計(jì)水平。九、程序源代碼#includeiostream.h#includestring.h#includestdlib.h#includestdio.h#includefstream.h#includeconio.h#includegraphics.h#includedos.h#includeprocess.h#define TURE 1#define FALSE 0#define KB_S_N_DOWN 80#define KB_S_N_UP 72#define KB_S_N_ENTER 28#define KB_S_N_D 32#define KB_S_N_Q 16#define KB_S_N_M 50#define KB_S_N_A 30#define KB_S_N_F 33#define KB_S_N_R 19#define KB_S_N_E 18void Welcome();int get_key();int getitem(int);void light_bar();void box(int x,int y,int wi,int hi,char bkcolor,char color);int row,item_num=7;unsigned size;void * buf;/void box(int x,int y,int wi,int hi,char bkcolor,char color) textbackground(bkcolor);textcolor(color);int i;gotoxy(x,y);putch(0xda);for(i=1;iwi;i+)putch(0xc4);putch(0xbf);for(i=1;ihi;i+)gotoxy(x,i+y);putch(0xb3);gotoxy(x+wi,i+y);putch(0xb3);gotoxy(x,y+hi);putch(0xc0);for(i=1;iwi;i+)putch(0xc4);putch(0xd9);/void Welcome()int graphdriver=VGA;int graphmode=VGAHI;initgraph(&graphdriver,&graphmode,d:bcbgi);int seed=1858;int dotx,doty,h,w,color,maxcolor;maxcolor=getmaxcolor();w=getmaxx();h=getmaxy();srand(seed);for(int i=0;i(istream &in,Date &da); friend ostream & operator (istream &in,Date &da)A: int y,m,d; inymd; if(y2002) couterror!12|m1) couterror!daysmonthm|d1) couterror!endl; goto A; else da.day=d; else if(y%100=0)|y%4=0&y%100!=0) if(d29) couterror!endl; goto A; else da.day=d; else if(d28) couterror!endl; goto A; else da.day=d; return in;/ostream & operator (ostream &out,Date d)outd.year/d.month/d.dayendl;return out;/void Date:operator =(Date d)year=d.year;month=d.month;day=d.day;/class people public:people();friend ostream & operator (istream &in,people &p);void operator =(people p);void set();void change();char *getname();char *getsex();char *getid();char *gettelephone();Date getbirthday();char *getnumber();void setname(char *);void setsex(char *);void setid(char *);void setnumber(char *);void setaddress(char *);void settelephone(char *);void setbirthday(Date);void setsalary(char *);void setpost(char *);void setdepartment(char *);protected:char name20;char sex5;char id20;char telephone10;Date birthday;char number20;char address100;char salary10;char post20;char department30;public:people *next;people *previous;/void people:setdepartment(char *d) strcpy(department,d);/void people:setpost(char *p)strcpy(post,p);void people:setsalary(char *s)strcpy(salary,s);/void people:setname(char *n)strcpy(name,n);/void people:setsex(char *s)strcpy(sex,s);/void people:setid(char *i)strcpy(id,i);/void people:setnumber(char *n)strcmp(number,n);/void people:setaddress(char *a)strcpy(address,a);/void people:settelephone(char *t)strcpy(telephone,t);/void people:setbirthday(Date d)birthday=d;/char * people:getname()return name;/char * people:getsex()return sex;/char * people:getid()return id;/char * people:gettelephone()return telephone;/Date people:getbirthday()return birthday;/char * people:getnumber()return number;/void people:set()next=previous=NULL;/people:people()next=previous=NULL;/ostream & operator (ostream &out,people p)box(15,5,50,16,4,7);gotoxy(32,8);outImformation;gotoxy(20,10);outname: sex:p.sex;gotoxy(20,11);outnumber:p.number id:p.id;gotoxy(20,12);outaddress:p.address;gotoxy(20,13);outtelephone:p.telephone;gotoxy(20,14); outbirthday:p.birthday;gotoxy(20,15);outsalary:p.salary post:p.post;gotoxy(20,16);outdepartment:(istream &in,people &p)box(15,5,50,16,4,7);gotoxy(32,5);coutInformation;gotoxy(20,7); coutname: sex:; gotoxy(20,9); coutnumber: id:;gotoxy(20,11);coutaddress:;gotoxy(20,13);couttelephone:;gotoxy(20,15);coutbirthday:;gotoxy(20,17);coutsalary: post:;gotoxy(20,19);;window(52,7,59,7);textbackground(0);clrscr();inp.sex;window(28,9,39,9);textbackground(0);clrscr();inp.number;window(45,9,62,9);textbackground(0);clrscr();inp.id;window(29,11,59,11);textbackground(0);clrscr();cinp.address;window(31,13,43,13);textbackground(0);clrscr();inp.telephone;window(29,15,40,15);textbackground(0);clrscr();inp.birthday;window(27,17,40,17); textbackground(0);clrscr();inp.salary;window(52,17,59,17);textbackground(0);clrscr();inp.post;window(33,19,50,19);textbackground(0);clrscr();inp.department;return in;/void people:operator=(people p)strcpy(name,);strcpy(sex,p.sex);strcpy(id,p.id);strcpy(telephone,p.telephone);birthday=p.birthday;strcpy(address,p.address);strcpy(number,p.number);strcpy(salary,p.salary);strcpy(post,p.post);strcpy(department,p.department);/class peoplelist:public people public: peoplelist(); void set(); void add(); void display(); void find(); void deleteAll(); void save(); void load(); void modify(); void remove(); private: people *start; people *end;/void peoplelist:modify()textmode(C80);textbackground(BLUE);clrscr();gotoxy(10,10);coutn;clrscr();people *temp;temp=start;while(temp)if(strcmp(temp-getname(),n)=0)coutnext;if(temp=NULL)gotoxy(20,10);coutthe person dosenot exist!set();gotoxy(20,18);coutn;gotoxy(20,19);if(strcmp(n,name)=0)couts;temp-setname(s);else if(strcmp(n,sex)=0)couts;temp-setsex(s);else if(strcmp(n,telephone)=0)couts;temp-settelephone(s);else if(strcmp(n,id)=0)couts;temp-setid(s);else if(strcmp(n,number)=0)couts;temp-setnumber(s);else if(strcmp(n,address)=0)couts;temp-setaddress(s);else if(strcmp(n,birthday)=0)coutd;temp-setbirthday(d);else if(strcmp(n,salary)=0)couts;temp-setsalary(s);else if(strcmp(n,post)=0)couts;temp-setpost(s);else if(strcmp(n,department)=0)couts;temp-setdepartment(s);elsecoutitem incorrect!endl;gotoxy(20,20);coutmodify succeed!endl;getch();/void peoplelist:remove()textmode(C80);textbackground(BLUE);clrscr();gotoxy(10,10);coutn;clrscr();people *temp;temp=start;while(temp)if(strcmp(temp-getname(),n)=0)break;if(temp=NULL)gotoxy(20,10);coutthe student name dosenot exist!previous)temp-previous-next=temp-next; if(temp-next)temp-next-previous=temp-previous;elseend=temp-previous; elseif(temp-next)temp-next-previous=NULL; start=temp-next;elsestart=end=NULL;gotoxy(30,10); coutremove succeed!endl;getch();/void peoplelist:sav
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 院內(nèi)美化合同協(xié)議書(shū)5篇
- 2025年榆林普通貨運(yùn)從業(yè)資格證模擬考試
- 2025年大理貨運(yùn)員初級(jí)考試題庫(kù)
- 2025年高中化學(xué)新教材同步 必修第一冊(cè) 第4章 第3節(jié) 第2課時(shí) 化學(xué)鍵 分子間作用力
- 107-廣播對(duì)講系統(tǒng)
- 空間環(huán)境監(jiān)測(cè)系統(tǒng)產(chǎn)業(yè)分析報(bào)告
- 個(gè)人汽車(chē)公用租賃合同范本
- 勞務(wù)派遣住宿合同范本
- 中學(xué)化學(xué)教學(xué)工作總結(jié)
- 個(gè)人自查自糾整改報(bào)告
- 林規(guī)發(fā)〔2016〕58號(hào)防護(hù)林造林工程投資估算指標(biāo)
- 非公開(kāi)發(fā)行公司債券的法律意見(jiàn)書(shū)模版
- 汽車(chē)空調(diào)技術(shù)與維修教案
- 城市軌道交通乘客服務(wù)課件(完整版)
- 圍手術(shù)期肺部感染
- 北師大版語(yǔ)文選修《蕭蕭》ppt課件1
- 大學(xué)生職業(yè)素養(yǎng)課件-5第五單元學(xué)會(huì)有效溝通-PPT課件
- 煤礦2021年重大安全風(fēng)險(xiǎn)分析預(yù)判防控報(bào)告全文
- 《傷逝》_魯迅課件__大學(xué)語(yǔ)文(基礎(chǔ)教育)
- 《談骨氣》課文閱讀(共2頁(yè))
- 高考成績(jī)證明模板
評(píng)論
0/150
提交評(píng)論