Tuesday 3 February 2015

C++ Programming Language

 C++ Programming Language

C++ is an object oriented programming (OOP) language, developed by Bjarne Stroustrup at Bell Labs beginning in 1979.it is a high-level programming language C++ is one of the most popular languages primarily utilized with system/application software, drivers, client-server applications and embedded firmware.

The main highlight of C++ is a collection of pre-defined classes, which are data types that can be instantiated multiple times. The language also facilitates declaration of user defined classes. Classes can further accommodate member functions to implement specific functionality. Multiple objects of a particular class can be defined to implement the functions within the class. Objects can be defined as instances created at run time. These classes can also be inherited by other new classes which take in the public and protected functionalities by default. 

C++ includes several operators such as comparison, arithmetic, bit manipulation, logical operators etc. One of the most attractive features of C++ is that it enables the overloading of certain operators such as addition. 

A few of the essential concepts within C++ programming language include polymorphism, virtual and friend functions, templates, namespaces and pointers. 

Features

The syntax of C++ is largely inherited from C. It adds object-oriented features to its predecessor, such as classes, abstraction, encapsulation, inheritance, and polymorphism. It also provides functionality for function and operator overloading, generic programming facilities (such as the ability to create templates for functions and classes), exception handling, and a robust standard library (STL) of useful data structures, algorithms, andinput/output facilities.

Hello, World! In C++

Here is an example "Hello, World!" program 
#include <iostream>

int main()
{
  std::cout << "Hello, world!\n";
}

No comments:

Post a Comment