文件名称:Employee
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [WORD]
- 上传时间:
- 2013-01-07
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 王*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
先建立一个职工类Employee,包含数据成员name(职工姓名),ID(职工编号)。以它为基类,派生出经理类Manager和技术人员类Technician,在经理类中增加数据成员salary(代表经理的月工资),在技术人员类中增加数据成员wage(代表每小时的工资数)和hours(月工作时数)。在定义类时,所有类中必须包含有构造函数、析构函数、修改和获取所有数据成员的函数,以及纯函数计算职工的工资,输出职工的信息。-To establish a trade union class Employee contains data member name (employee name), ID (employee number). Use it as a base class, derived manager classes Manager and technical staff Class Technician, increase in the manager class data members salary (on behalf of the manager of the month wage), and to increase the data members of the class of the technical staff wage (the hourly wage by the number of the representatives) working hours) and hours (months. Must be included in the definition of the class, all class constructor, destructor the function modify and access to all data members, as well as the pure function to calculate the wages of employees, information on output of workers.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Employee.doc