Structure of Programming Language
“C++ Programming Language”
INSTRUCTOR:
SCLP
SUBMITTED BY:
UC
HISTORY OF C++ In the early 1970s, Dennis Ritchie of Bell Laboratories was engaged in a project to develop a new operating system. Ritchie discovered that in order to accomplish his task he needed the use of a programming language that was concise and that produced compact and speedy programs. This need led Ritchie to develop the programming language called C.. In the early 1980's, also at Bell Laboratories, another programming language was created which was based upon the C language. This new language was developed by Bjarne Stroustrup and was called C++. Stroustrup states that the purpose of C++ is to make writing good programs easier and more pleasant for the individual programmer. When he designed C++, he added OOP (Object Oriented Programming) features to C without significantly changing the C component. Thus C++ is a "relative" (called a superset) of C.
Introduction
When one begins to write a program, the first action should be to define the variables that the program needs; variables are places in memory in which to store data items. Next, one writes the instructions to input values from the user (say, via the keyboard) and store those values in the variables. Now that the variables have values, one can write the needed calculation instructions and finally the instructions to display the results. This chapter concentrates on numeric type of variables and constants along with their basic input and output instructions.
Use of C++: C++ is used by hundreds of thousands of programmers in essentially every application domain. C++ is being highly used to write device drivers and other software that rely on direct manipulation of hardware under real time constraints. C++ is widely used for teaching and research because it is clean enough for successful teaching of