A more object-based C++ program
The C++ program in Listing 4
illustrates the basic structure of a C++ program that:
- Prohibits the use of global variables and global
functions other than main as above
- Avoids the use of static functions for any purpose other
than to control the flow of the program by acting as a pseudo main
function.