Sample C++ Program: Simula
Sample C++ Program: Simula
HISTORY
C++ supports for the Structured programming and also it fully supports OOP
1. Encapsulation
2. Data hiding
3. Inheritance
4. Polymorphism.
1. Visual C++
2. Borland C++
3. Turbo C++ (To Read more click here)
4. Standardize C++ [ANSI C++]
#include <iostream>
using namespace std;
6. Each C++ program starts with the main function like C Programming.
7. Return type of the C++ main function is integer, whenever main function returns 0 value to
operating system then program termination can be considered as smooth or proper.
8. Whenever some error or exception occurs in the program then main function will return the
non zero value to operating system.
cout << "C++ is power programming.";
9. C++ Insertion operator (<<) is used to display value to the user on the console screen.
return 0;
10. return statement sends status report to the operating system about program execution whether
program execution is proper or illegal.
C++ Compilers : 5 most popular C++ IDE / Compiler used to Run C++
Program
C++ Compilers are OS dependent so writing complex C++ Program is not an easy task , we have to
put lot of efforts to write C++ Program if we don’t have IDE. IDE makes our task easy. We have list
of different compilers used to compile and execute C++ programs on the different Operating
Systems (OS). We have summarized all the compiles in the below list –
C++ Provides huge Function Library that’s why its popularity is increasing day by day and more
programmers are inclining towards C++ due to its multiple features –
VARIABLE NAMING
What is Identifier ?
Any used defined name given to the program element is called as identifier. (i.e Program elements
are identified by program with the identifier name)