PPT Slide
The C++ Program Structure
The program structure in C++ consists of three parts as follows
1. Class Definition: Each class (or a hierarchy of classes) is defined in a
separate “header” file named class_name.h
2. Member Functions Definition: The body of member functions declared
in each class are defined in a file named class_name.cpp. This file must
contain an include directive to include the code in the header file.
3. Main Program Function: Each program must have a function called
main(), needed to instanciate and manipulate objects. This file is called
program_name.cpp, and it must also include the header file defining the