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

  1. //
  2. // member function definitions 
  3. // added by the user
  4. //
  5. #include "impl.h"
  6. #include "user.h"
  7. #include <iostream.h>
  8.  
  9. company JCN;
  10.  
  11. main() {
  12.   JCN.addManager("Bill", 40, 15);
  13.  
  14.   JCN.addProgrammer("Bob", 25, 35);
  15.  
  16.   JCN.addProgrammer("Julie", 30, 35);
  17.  
  18.   JCN.addOvertime("Bob", 10);
  19.  
  20.   if ( JCN.payRoll() == 4300 ) {
  21.      cout << endl << "Test Successful." << endl;
  22.      return 0;
  23.   }
  24.   else {
  25.      cout << endl << "Test Failed." << endl;
  26.      return 1;
  27.   }
  28. }
  29.