Introduction to C++ Program Structure

An outline of a C++ program looks like this:

header comments

include files

function declarations (prototypes)

data declarations (global)

main function header

{
   data declarations (local)
   statements
}

other functions
Next page

Back to Lesson 2 Index
Back to Outline