欢迎来到天天文库
浏览记录
ID:11132022
大小:160.00 KB
页数:27页
时间:2018-07-10
《职工信息管理系统c++版 程序设计说明书》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、高级语言程序设计说明书职工信息管理系统系别专业班级学生姓名指导教师注释:2010计算机工程系《高级语言程序设计》大作业27目录引言···········································(3)程序结构·····································(3)程序流程图···································(4)程序源程序模块设计说明·······················(5)1.函数头···················
2、·····························(5)2.主函数·················································(5)3.基类及继承类············································(5)273-1.基类················································(5)3-2.继承类··············································(6)
3、3-3.公司类··············································(6)程序使用说明·································(8)总结·········································(9)引言27程序名称:职工信息管理系统开发平台:windows7MicrosoftVisualC++6.0主要功能:1。添加职工信息;2。删除职工信息及薪酬;3。修改职工信息;4。查询职工信息及薪酬;5。设置职位基本薪酬;6。存储职位
4、信息;程序说明:准确性要求高,可靠性要求高,输入控制严格,页面响应时间短,用户界面友好,输出准确,功能强大!!!运行环境:WindowsNT/2000/XP/VISTA/WIN7文件说明:程序源代码(职工信息管理系统.cpp);程序运行文件(职工信息管理系统.exe);职工信息存储文件(Employee.text);参考资料:《C++程序设计》谭浩强编著清华大学出版社程序结构函数头://cin,cout,等函数//类,对象,等函数定义//文本文档的
5、读/写/复制等函数主函数:voidmain()基类职工类employee派生类:Technician技术员类、Salesman销售员类、Salesmanager销售经理类、Manager经理类、Company公司类。在公司类中定义六个模块功能的实现方法:voidAdd()//添加voidDelete()//删除voidModify()//修改27voidQuery()//查询voidset()//设置voidSave()//载入voidLoad()//储存程序流程图开始定义变量数据处理调用输出函
6、数退出系统YN输入C的值C>=1&&C<=7调用设置函数调用储存函数调用载入函数调用查询函数调用输出函数调用修改函数调用删除函数调用增加函数程序流程图程序源程序模块设计说明271.函数头:#include#include#include#include调用系统在程序中将要用到的函数。2.主函数:switch(c){case'1':a.Add();break;case'2':a.Delete();break;case'3':a.Modify
7、();break;case'4':a.Query();break;case'5':a.Set();break;case'6':a.Save();break;case'7':a.Load();break;}在do-while循环中嵌套switch结构,用来调用构造函数,实现函数模块的功能。3.基类及继承类:3-1.基类:classEmployee//职工类{protected:intNo;//编号charName[20];//姓名charSex[10];//性别intDuty;//职位doubleEarning;/
8、/收入Employee*next;public:Employee(charID,char*Name,intDuty){this->Duty=Duty;strcpy(this->Name,Name);this->No=ID;}virtualvoidCalcSalary()=0;virtualvoidOutput()=0;friendclassCompany;};先定义一个职
此文档下载收益归作者所有