O'Reilly logo

Just Enough C/C++ Programming by Guy W. Lecky-Thompson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C++ Source Files

The C++ source files are used to implement the inner workings of the classes and to create the main application. They will need to reference the header files that will store the constants and macros needed to build the software, as well as the prototypes and class definitions that give information as to the interfaces to the classes.

You also instantiate objects, create instances of classes, and manipulate them in the C++ source files. Objects or class instances are never created inside the source files that are designed to contain the implementation of the classes, except in rare circumstances.

Again, a one-to-one relationship between the classes in the design, the header files, and the source files is advised. However, source ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required