home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / compiler / rtti / user.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  616 b   |  28 lines

  1. class employeeList {
  2.   employee* Empl;
  3.   employeeList* Next;
  4. public:   
  5.   employeeList() : Empl(0), Next(0) { }
  6.   ~employeeList();
  7.  
  8.   employeeList* next() { return Next; }
  9.   employee* empl() { return Empl; }
  10.  
  11.   static employeeList* first;
  12.   static employeeList* last;
  13.   static void addEmployee(employee*);
  14. };
  15.  
  16. class company {
  17.   employeeList* EmployeeList; 
  18. public:
  19.   company(); 
  20.   ~company(); 
  21.   void addManager(char* name, int hourRate, int experience);
  22.   void addProgrammer(char* name, int hourRate, int overtimeRate);
  23.   void addOvertime(char* name, int overtime);
  24.   int payRoll();
  25. };
  26.  
  27.  
  28.