C++


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++

Windows
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
Linux
g++, Eclipse, Code::Blocks
example of compilation from a console:
    g++ -o moje moje.cpp
up-start:
    ./moje

  EXAMPLE OF CODE

   #include <iostream>
   using namespace std;
   int suma(int x, int y)
   {return x+y;}
   main()
   {
   int a, b;
   system(”CLS”);
   cout<< ”I number= ”;
   cin>> a;
   cout<<”II number= ”;
   cin>> b;
   cout<<a<<”+”<<b<<”=”<<suma(a,b);
    system(“PAUSE”);
   return 0;
   }

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).