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