Your program will start with a comment block. The comment block will contain:
In each comment line, the // symbol will be followed by a blank space, and the first word will start with an uppercase letter.
The comment block will be followed by a blank line. The #include lines will follow (there will always be at least one.)
The #include lines will be followed by a blank line. The main( ) function will have its beginning and ending { } lined up in the left margin, and they will be alone on their lines. The body of the main function will be indented at least 3 spaces from the left margin.
Any operator symbol (such as <<, >>, <, >, +, -, *, /, =, etc) will be preceded and followed by a blank space to separate it from the rest of the expression.
Each main( ) will terminate with a return 0; line, which will be preceded by a blank line. Comment sparingly in the code. Make sure your comment words and any output words are spelled correctly.
Example
// File first.cpp
// A first program in C++
// Written by George W. Ball
// Written for APCS
// Due: September 9, 1998
// Version 1.1
#include <iostream.h>
main()
{
cout << "Welcome to APCS and to C++!\n";
cout << "Please follow this example for
programs." << endl;
return 0;
}