C++ Programs

C++ programs contain many of the same programming statements and constructs as C programs:


A C++ name can identify any of the following:


A declaration introduces a name into a program and can define an area of storage associated with that name.

An expression can be evaluated and is composed of operations and operands. An expression ending with a ; ( semicolon) is called a statement. A statement is the smallest independent computational unit. Functions are composed of groups of one or more statements.

A C++ program is composed of one or more functions. These functions can all reside in a single file or can be placed in different files that are linked to each other. In C++, a program must have one and only one non-member function called main().



C++ Support for Object-Oriented Programming


Source for a Simple C++ Program