1.  ANSI C++ - Getting Started ANSI C++ Script
Generating ANSI C++

Class Diagram: cppcar.omt
Script Files: cpphead0.sct and cppfunc0.sct - Also cpphead1.sct, cppfunc1.sct, cpphead2.sct, and cppfunc2.sct
Main File: cppmain.cpp

The ANSI C++ scripts and most of the C++ scripts generate the following C++ statements: #indefs, #includes,
default constructor, constructor with arguments, copy constructor, default destructor, =operator, ==operator, get
and set accessor functions for data members, pointer data members for association relationships, data member
for aggregation relationships, C-arrays for 1 to many relationships, operator<< insertion for cout statements,
and operator>> for cin statements.  You must manually update the default constructor to initialize base class
data members.  If you are not using IOSTREAM's then delete the #include <iostream.h> statement and the
operator<< and operator>> code generation functions in the scripts.

 The steps to generate ANSI C++ and to compile the generated files are as follows:

>> Launch With Class from Windows
>> Open cppcar.omt
>> Select "Generate - Generate Class Code"
>> Select h as the file extension
>> Select cpphead0.sct to generate the header files (.h)
>> Select "Generate - Generate Class Code"
>> Select cpp as the file extension
>> Select cppfunc0.sct to generate the source code files (.cpp)
>> Select "File - Edit File" to examine the generated files, e.g. car.h
>> Run your C++ environment
>> Create the Car Project, e.g. carproj.mak
>> Add the .cpp files to the project. e.g. cppmain.cpp, car.cpp etc
>> Compile all .cpp files
>> Compile cppmain.cpp
>> Execute the project

Request comments and improvements: Richard Felsinger 71162.755@compuserve.com
telephone 803-881-3648


