Sunday, 14 August 2016

what is c++

                                                       WHAT IS C++

C++ is an object-oriented programming language . It was developed by Bjarne stroustrup at AT&T Bell Laboratories in murray hill , New jersey,USA in the early 1980's stroustrup ,an admirer of simula67 and a strong supporter of C, wanted to combine the best of both the languages and create a more powerful language that could support object-oriented programming features and still retain the power and elegance of c , The result was C++ . therefore,c++ is an extension of c with a major addition of the class construct feature of simula67,Since the class was a major addition to the original C language,'C with classes'However later in 1983,the name was changed to c++.The idea of c++ comes from the C increment operator ++, thereby suggesting that c++ is an augmented (incremented)version of c.

During the early 1990's the language underwent a number of improvements and changes.In November 1997, the ANSI/ISO standards committee standardised these changes and added several new features to the language specifications.

C++ is a superset of C, Most of what we already know about c applies to c++ also therefore, almost all C programs are also  c++ programs .However there are a few minor differences that will prevent a c program to run under c++ compiler, we shall see these differences later as and when they are encountered .

The most important facilities that c++  adds on to c are classes,inheritance,function overloading ,and operator overloading.These features enable creating of abstract data types,inherit properties from existing data types and support  polymorphism,thereby making c++ a truly object-oriented language.

The object-oriented features in c++ allow programmers to build large programs with clarity,extensibility and ease of maintenance,incorporating the spirit and efficiency of C. the addition of new features has transformed C from a language that currently facilitates top-down , structured design, to one that provides bottom-up,object oriented design.


                                               APPLICATION OF C+ +

C++ is a versatile language for handling very large programs.It is suitable for virtually any programming task including development of editors,compilers, databases,communication system and any complex real-life application system.

  • Since c++ allows us to create hierarchy -related objects ,We can build special object-oriented libraries which ca n be used later by many programmers.
  • While c++ is able tp map the real world problem property,the C part of C++ gives the language the ability to get close to the machine -level details.
  • C++ programs are easily maintainable and expandable .When a new feature needs to be implemented ,it is very easy to add to the existing structure of an object.
  • It is expected that C++ will replace C as a general-purpose language in the near future.


                                        A SIMPLE C++ PROGRAM

#include<iostream>          // include header file
using namespaces std ;
int main ()
{

cout<<"c++ is better than c"; // c++ statement
return 0;

}           // end of example 

No comments:

Post a Comment