home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / WCLASS95.ZIP / CPPMAIN0.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-29  |  764 b   |  25 lines

  1. //This sample main program may be used to test C++ code generation scripts.
  2. //In With Class load cppcar.omt.  Run the scripts cpphead.sct and cppfunc.sct
  3. //or borland scripts.
  4. //Create a project in your C++ environment.  Add carmain.cpp, vehicle.cpp, 
  5. //car.cpp, motor.cpp, passenge.cpp, tire.cpp, and cellular.cpp.
  6. //Comments and suggestions are solicited Richard Felsinger, RCF Associates
  7. //960 Scottland Dr, Mt Pleasant, SC 29464 tele 803-881-3648 71162.755@compuserve.com
  8.  
  9. #include "car.h"
  10.  
  11. int main ()
  12.   Car car1;
  13.   car1.start();
  14.   car1.operate();
  15.   car1.stop();
  16.   car1.addPassenger();
  17.   car1.removePassenger();
  18.   car1.makePhoneCall();
  19.   car1.receivePhoneCall();
  20.   car1.inflateTire();
  21.   car1.checkPassengerSeatBelt();
  22.   return 0;
  23. }
  24.