C++ is an object oriented language, which combines the best of the structured programming techniques of C, thus making it a very powerful language. C++ is based on C and Simula 67 language. C was invented by Bjarne Stroustrup. Since C++ is a superset of C, therefore most of C language constructs apply in C++ as well. A program in C++ can be written in both C style and Object Oriented style. First Program Let us start our tour of C++ with a simple program. Here is a simple program which outputs a line of text. It’s output is shown in the right column. // This is my first C++ program //It prints a line of text # include <iostream> int main() { std:: cout << “My first C++ program ” << std::endl; return 0; } My first C++ program Structure of the C++ Program and C++ features Above program demonstrates several important features of C ++ language. The structure of the program above is as follows:- // This is my first C++ program //It prints a line of text are comments in C++ language. # include <iostream> is a preprocessor directive. It tells the preprocessor to include the contents of iostream header file in the program before compilation. This file is required for input output statements. main Function int main() is a function. C++ program is a collection of functions. Every program in C++ begins executing at the function main (). Every C++ program has exactly one main function and a collection of other functions. A function is the main entity where all of the functionality of a program is defined. A function takes some input, processes it according to the some code written in the function body and produces an output which can be either sent to the user or can be used by other functions. Keyword int in int main() specifies the return type of a function. int specifies that the function main returns an integer value. Brackets () after main signify that main is a function. Every function should be followed by a pair of brackets. The purpose of brackets is to pass the parameters list to the functions. Parameters are the number and type of arguments (inputs) which a function takes. Opening brace ( { ) and closing brace ( } ) mark the beginning and end of a function. Anything which is inside the braces is the body of that function. In our example, the function body consists of only two statements, { std::cout << “My first C++ program. \n”; return 0; }