Description: Suppose a sales company with sales managers and sales staff, the calculation of monthly salary is: sales manager and a fixed monthly salary of 8,000 yuan
Extract sales 5/1000 as wages sales staff to extract only 5/1000 as wages. Compile a program, define a
Base class Employee, which contains three data members number, name and salary, as well as for the input number and the name of the constructor.
The number. Salesman class derived from the Employee class, then by the Salesman class derived Salesmanager class. Salesman class contains two
New data members commrate and sales, also includes sales and calculate the sales for the input member functions wages and pay for
Output of the member function print. Salesmanager class contains the new data member monthlypay, as well as sales and account for input
Considered a member function sales manager salary pay, the member function for the output print (). In the main function to test your class results
Institutions, seekin
To Search:
File list (Check if you may need any files):
my C++.doc