Site hosted by Angelfire.com: Build your free website today!
C++ History

[ How did C++ evolve? ]



C++ evolved from C, which evolved from two previous programming languages BCPL and B. BCPL was developed in 1967 by Maritn Richards as a language for writing operating systems softwares and compilers.

Ken Thompson modeled many features in his language B after their counterparts in BCPL and used B to create early version of the UNIX operating system at Bell Laboratories in 1970 on a DEC PDP-7 computer.

Both BCPL an B were “typeless” language - every data item occupied on “word” in memory and the burden of treating a data item as a whole number or a real number, for example, was the responsibility of the programmer.


? C++ an extention of C

The C language was originally implemented on a DEC PDP-11 computer in 1972. C uses many important concepts of BCPL and B while adding data typing and other futures. C initially became widely known as the development language of the UNIX operating system. Today, most operating systems are written in C and/or C++. C in now available for most computers. C is hardware independent. With careful design, it is possible to write C programs that are portable to most computers.

C++ an extension of C, was developed by Bjarne Stroustrup in the early 1980s at Bell Laboratories. C++ provides a number of features but more importantly, it provides capabilities for object-oriented programming. Object-oriented programs are easier to understand, easier to correct and modify.



C++ History

[ "The only way to learn how to program is to write programs" Steve Oualline ]



C Incompatibilities with the C++ Language

C++ adds keywords that are not reserved by the C language. If a C program uses any of those key words as identifiers for function or variables, a C++ compiler cannot compile the C program.

C programmers can omit function prototypes but C++ programmers cannot.

A C function prototype with no function parameter must include the keyword void in the parameter list, whereas a C++ function prototype uses an empty parameter list.

C++ Improvements on C Features:

C++ inline function can be used instead of C’s #define macros that have arguments.

C++ const variable declaration can be used instead of C’s #define statements that equate values to symbols.

The C++ new and delete memory allocation operators replace standard C’s malloc and free functions.

The standard C++ string class replace the character array processing functions declared in the standard C library’s header file.

The C++ iostream class library replaces standard C’s stdio function library for input and output.

C++ try/catch/throw exception handling mechanism replaces standard C’s setjmp/longjmp functions.


? The C++ Programming Language (in brief)

* C++ evolved from "C", which was originally implemented in 1972 and standardized in 1989. The ANSI Standard resulted in one version of C instead of many versions.

* C++ is an "extension" or "superset" of C (C with additional features added).

* C++ was developed by Bjarne Stroustrup at AT & T Bell Laboratories in the early 1980s; he added features of the Simula language (a language for carrying out simulations) to C. The resulting language was called C++.

* The features added to C (resulting in C++) provide capabilities for object-oriented programming, a programming style in which reusable software components called "objects" are used to model items in the real world.

* C++ was standardized in November of 1997.

* C++ is one of today's most popular software development languages.

* The Savitch text uses a subset of C++.

Reference: Savitch, Chapter 1.3