History of C++ Programming Language
History of C++ Programming Language
Instructor:
Engr. Mariam Shafqat
Programming language
It is a language that is used to control the
behavior of a machine particularly
computer.
It is used to facilitate communication about
task of organizing and manipulating
information
It is used to express algorithms precisely
Algorithm
Set of instructions used to specify how to
solve a problem
Syntax
Set of rules that govern the structure of
sentences, instructions
Types of languages
Typed language: If operation defined for
one data type cant be performed on
another data type
Un-typed language: Allow any operation
to be performed on any data type e.g.
assembly language.
Introduction
C++ is General purpose programming
language
Mid level language: Combination of both
high level language and low level
language
Why functions?
It is a way to make programs more
comprehensive
Each function has a clearly defined
purpose and a clearly defined interface to
other parts of program
Module: Grouping of a number of functions
together
Structured programming
Division of a program into functions and
reconstruction in the form of modules is
structured programming
Data
In procedural language data is given
second class status But in object oriented
programming data is given first class
status
Global data: The one that is acessible to
all the functions
Local Data: the one that is accessible only
to its own confined block
Contd
C++ typically consists of a number of
objects which communicate with each
other through its functions
Abstraction
Inheritence
Encapsulation
polymorphism
Inheritence
Each subclass share a common set of
characteristics from its parent class. In
addition to common characteristics they
have their own characteristics as well
OOP class can be divided into subclasses.
Original class is called parent class and
those that share common characteristics
are called subclass.
Class
Serve as template of a new data type . It
specifies what data and functions will be
included in objects of that class. Defining
class dont create ay object . Similar to
integer dont create any integer variable.
Compilers
Borland C++
Turbo C++
Integrated development
environment
Put all the tools that you need to develop
program into a single unit
Borland C++
It is used to create program in windows
environment
It is a special kind of windows program
that acts like a DOS program ; it runs
under windows but acts like a DOS
program