C++ language was designed by Bjarne Stroustrup as a successor to C, mainly extended by objectivity. The language in the creation phase was called "C with classes". In the 90's it gained great popularity in both system and application programming. C++ is considered to be one of the best object-oriented programming languages. Programmers choose C++ if highest performance, direct access to the system and reliability are required. C++ has had a significant impact on later languages such as Java and PHP, which share many common syntactic features..
COMPILERS, EDITORS AND LANGUAGE ENVIRONMENTS C++
Dev-C++, C++ Builder, Code::Blocks, Turbo C++, Dev-C++, Eclipse, Watcom C++, NetBeans, Intel C++ Compiler, Magic C++, Ulitmate++, Borland C++, Microsoft Visual C++, Microsoft Visual Studio
g++, Eclipse, Code::Blocks
example of compilation from a console:
g++ -o moje moje.cpp
EXAMPLE OF CODE
using namespace std;
int suma(int x, int y)
int a, b;
cout<< ”I number= ”;
cout<<”II number= ”;
Include directives written at the beginning of the program include libraries. #<include iostream> connects the I/O library (input otput stream). The include directives are written at the beginning of the programme The keyword using namespace allows you to use the entire program space attached to the program. libraries. This way you won't have to call it every time you use the manual. std means using the keyboard and monitor manual (stream display).