answersLogoWhite

0

The format of a basic C++ program is as follows:

First, you have your include statements.

Next, you have your function prototypes, and class declarations.

Then, you have your main function. This can be organized into small parts using whitespace characters.

Finally, you have the definition of all the functions you call in the main function.

Really, it's up to the individual programmer how most of the code is organized, but the above is a good structure if you're not absolutely sure what you're doing.

User Avatar

Wiki User

14y ago

What else can I help you with?