源码简介: |
问题的提出:编写一个小公司的工资管理系统。该公司主要有4类人员:经理、兼职技术人员、销售员和销售经理。要求存储并显示每类人员的编号(从100起编号)、姓名和月薪,同时给出在创建每一类对象时构造函数的执行顺序(月薪计算方法为:经理固定月薪8000元,兼职技术人员100元/小时,销售员为当月销售额的4%,销售经理保底工资5000元另加其所管部门销售额的5%),要求用虚函数实现。-Of the problem: write a small company' s payroll system. The company has four categories of people: managers, part-time technical staff, sales staff and sales managers. Required to store and display the number of each type of staff (from 100 starting number), name and salary, are given to create each type of object in the constructor of the implementation of the order (monthly salary calculated as follows: Manager fixed monthly salary of 8,000 yuan, part-time technical staff 100 yuan/hour, the salesman of the month 4 of sales, sales manager for security at the end of their pay 5,000 yuan plus 5 of sales management department), asked to use virtual functions to achieve.
|