home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / WCLASS95.ZIP / BCMAIN.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-05  |  884 b   |  26 lines

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