This preview shows page 1. Sign up to view the full content.
Unformatted text preview: and asterisk, /* ) and the end-comment marker (the opposite, */ ). The message can span many lines as needed, as shown in the typical commenting style below: /* * The C++ compiler can not see ANYthing I type here * because I typed the symbol /* However, it can see my * code again after I type the next line. */ The third line of the program is blank, which is perfectly legal. You can insert as many extra blank lines or "white space" as you'd like in order to make your program more (or less) readable. Spaces and tabs are also considered white space. The third line is one which appears in every program. It introduces the main() function, which is where your programs will always begin to execute instructions. The main() function is often of return type void. More on this topic later. For now, just accept that every program needs to have a main() function to tell it where to start, and it should appear after your #include statements....
View Full Document
This note was uploaded on 12/12/2011 for the course CIS 101 taught by Professor Keefe during the Spring '08 term at Texas State.
- Spring '08