< Previous | Contents | Next >

Writing Your First Cþþ Program

Okay, enough theory. Its time to get down to the nitty-gritty and write your first Cþþ program. Although it is simple, the following program shows you the basic anatomy of a program. It also demonstrates how to display text in a console window.


 

Introducing the Game Over ProgramCommenting CodeUsing WhitespaceIncluding Other FilesDefining the main() FunctionDisplaying Text through the Standard OutputTerminating StatementsReturning a Value from main()