Pages

Sunday, 20 October 2013

C++ For Beginners

History of C++:

C++ is an object oriented programming language and it is considered to an extension of c.

It is developed by “Bjarne stroustrup”  at AT & T Bell Laboratories.

Stroustrup is a master of Simula 67  and C. He wanted to combine features of both languages into a more powerful language that could support to object oriented language with features of ‘C’.

Various ideas derived from Simula 67, C and ALGOL 68 and called as “C with Classes “. However in 1983 the name was changed to C++.

Idea  of C++ name from Increment Operator ‘++’.

The Rick Mascitti coined the term C++ in 1983.

C++ is a superset of c, and also it is considered to extension of ‘C’.

Characteristics of ‘C’:

C  is a Procedure Oriented Language or Structure Oriented Language.

In Procedure Oriented Language big Procedure is dived into smaller Procedures or large program is divided into smaller programs.


In C we declare the variables outside of the main then declaration is called global declaration and the variables are called global variables.

The variables are visible all functions i.e. at the starting of the program to till end of the program so there is no security for the data.

In C execution of the program top to bottom approach.

Here more importance to function compare with data.

Characteristics of ‘C++’:

It is an Object Oriented Programming Language

It is collection of objects

In C++ programs are divided into classes and Their Member functions and Member variables

We can access the Data Members and Member Functions when ever those are essential.

Data is private, so unauthorized persons (functions) can’t access the data

By using Function Objects can communicate with each other.

In c++ execution of the program bottom to top approach.

In c++ data is more Important than compared to functions

No comments:

Post a Comment