企业人事管理系统实验报告

上传人:第*** 文档编号:32743659 上传时间:2018-02-12 格式:DOC 页数:31 大小:258.50KB
返回 下载 相关 举报
企业人事管理系统实验报告_第1页
第1页 / 共31页
企业人事管理系统实验报告_第2页
第2页 / 共31页
企业人事管理系统实验报告_第3页
第3页 / 共31页
企业人事管理系统实验报告_第4页
第4页 / 共31页
企业人事管理系统实验报告_第5页
第5页 / 共31页
点击查看更多>>
资源描述

《企业人事管理系统实验报告》由会员分享,可在线阅读,更多相关《企业人事管理系统实验报告(31页珍藏版)》请在金锄头文库上搜索。

1、1面向对象程序设计课程设计报告企业人事管理系统目录一、 软件需求分析二、 总体方案设计三、 详细设计四、 程序的调试与运行结果说明五、 课程设计总结六、 附录2一、软件需求分析一、需求分析1、实现人员信息的增、删、改操作,并实现按姓名、工号进行查询功能,按照部门、工资统计、排序功能能够实现人员的部门间的调动功能2、源文件采用多文件的工程结构3、数据存储采用多文件形式4、标准的 C+输入输出二、 操作手册运行程序后,按 1 键进入系统,要实现多种操作只需按照功能菜单上的提示输入相应的数字选择即可二、总体方案设计一、系统总共能模块企业人员信息表企业人员信息表查找记录显示记录按姓名按编号新建记录追加

2、信息按姓名按编号按姓名按编号3二、定义的函数及说明void deldate() /删除指定的单个员工的资料void adperson() /将输入的资料赋值给相映的数据void pprintn() /输出所有员工的资料people *query() /将系统中的编号与输入的编号比较people *qu() /将系统中的姓名与输入的姓名比void disp() /输出所有员工的资料void disp2() /输出指定的单个员工的资料void peopledata(); /主要功能实现函数void main() /主函数void jiemian1() /界面 1,进入程序时输出void jiemi

3、an3() /界面 3,程序结束后输出qiye() /qiye 类的构造函数三、 详细设计以下为我完成的具体功能函数及函数的详细分析和所用算法:1、 void deldate()函数该函数是删除指定的单个员工的资料,以后在其他程序模块如删除、修改等都需要调用void deldate()kg=1;2、void adperson()函数该函是数将输入的资料赋值给相映的数据void people:addperson(int b,int a,long int t,char *na,char *dizhi,char *zhiwei)kg=0;bh=b;strcpy(name,na);strcpy(adr

4、,dizhi);strcpy(duty,zhiwei);ID_num=a;salary=t;3、void pprintn()函数该函数是输出所有员工的资料的函数在如查询、修改等功能模块中通过调用该函数可实现显示所有员工资料的功能void pprintn()if(Getkg()=0)4coutchoice;if(choice=6)/clear();6break; switch(choice)case 1:char ch1;system(cls);coutch1;if(ch1=1)char chi;cout确定新建?(Y/N)chi;switch(chi)case Y|y:clear();brea

5、k;case N|n:goto loop_1b; default:coutworherbh;w=query(worherbh);if(w!=NULL)coutpeoplen;coutm;coutdutyt;coutk;coutaddr;addperson(worherbh,m,k,peoplen,addr,dutyt);coutch;while(ch=y|ch=Y);loop_1b:break;case 2:coutxz3;switch(xz3)case 1:coutworherbh;w=query(worherbh);if(w=NULL)coutpprintn();coutna;w=qu(n

6、a);if(w=NULL)coutpprintn();9coutch;while(ch=y|ch=Y);break;case 4:char choice,peoplen10;docoutchoice;switch(choice)case 1:coutworherbh;w=query(worherbh);if(w=NULL)coutpprintn();w-deldate();dodocoutworherbh;w=query(worherbh);if(w!=NULL)coutpeoplen;coutm;coutdutyt;coutk;coutaddr;addperson(worherbh,m,k,

7、peoplen,addr,dutyt);coutch;while(ch=y|ch=Y);break;case 2:coutpeoplen;w=qw(peoplen);if(w=NULL)coutpprintn();w-deng();dodocoutworherbh;w=query(worherbh);if(w!=NULL)coutpeoplen;coutm;coutdutyt;coutk;coutaddr;addperson(worherbh,m,k,peoplen,addr,dutyt);coutch;while(ch=y|ch=Y);default:coutch;coutxz5;switc

8、h(xz5)case 1:coutworherbh;w=query(worherbh);if(w=NULL)coutdeldate();coutxz52;switch(xz52)case Y|y:cout#include #include #include #include class people/员工类char name5;int kg;int bh;int salary;int ID_num;char adr15;char duty10;public:people()char *GetName()return name;int Getkg()return kg;19int GetNo()

9、return bh;int Getsalary()return salary;int GetID_num()return ID_num;char *GetAdr()return adr;char *Getduty()return duty;void SetNum(int num)bh=num;void SetID_num(int pxid)pxid=ID_num;void SetName(char na) strcpy(name,na);void SetAdr(char dizhi)strcpy(adr,dizhi);void Setduty(char zhiwei)strcpy(duty,z

10、hiwei);void deldate()kg=1;20void addperson(int b,int a,long int t,char *na,char *dizhi,char *zhiwei);void printw()coutchoice;if(choice=6)/clear();break; switch(choice)case 1:char ch1;system(cls);coutch1;if(ch1=1)char chi;cout确定新建?(Y/N)chi;switch(chi)case Y|y:clear();break;25case N|n:goto loop_1b; de

11、fault:coutworherbh;w=query(worherbh);if(w!=NULL)coutpeoplen;coutm;coutdutyt;coutk;coutaddr;addperson(worherbh,m,k,peoplen,addr,dutyt);coutch;while(ch=y|ch=Y);loop_1b:break;case 2:coutxz3;switch(xz3)case 1:coutworherbh;w=query(worherbh);if(w=NULL)coutpprintn();coutna;w=qu(na);if(w=NULL)coutpprintn();

12、coutch;while(ch=y|ch=Y);break;case 4:char choice,peoplen10;docoutchoice;switch(choice)case 1:coutworherbh;w=query(worherbh);if(w=NULL)coutpprintn();28w-deldate();dodocoutworherbh;w=query(worherbh);if(w!=NULL)coutpeoplen;coutm;coutdutyt;coutk;coutaddr;addperson(worherbh,m,k,peoplen,addr,dutyt);coutch

13、;while(ch=y|ch=Y);break;case 2:coutpeoplen;w=qw(peoplen);if(w=NULL)coutpprintn();w-deng();dodo29coutworherbh;w=query(worherbh);if(w!=NULL)coutpeoplen;coutm;coutdutyt;coutk;coutaddr;addperson(worherbh,m,k,peoplen,addr,dutyt);coutch;while(ch=y|ch=Y);default:coutch;coutxz5;switch(xz5)case 1:coutworherbh;w=query(worherbh);if(w=NULL)coutdeldate();coutxz52;switch(xz52)case Y|y:coutcho;int h=(cho=j)|(cho=1);system(cls);if(h)JM.peopledata();if(h=0)cout输入错误,请重新输入!endlendlendl;goto loop_m;JM.jiemian3();/

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 建筑/环境 > 工程造价

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号