Top Banner

of 23

History of C++ Programming Language

Jun 02, 2018

Download

Documents

Atro Suoic
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/10/2019 History of C++ Programming Language

    1/23

    History Of C++

    Instructor:

    Engr. Mariam Shafqat

  • 8/10/2019 History of C++ Programming Language

    2/23

    Programming language

    It is a language that is used to control thebehavior of a machine particularlycomputer.

    It is used to facilitate communication abouttask of organizing and manipulatinginformation

    It is used to express algorithms precisely

  • 8/10/2019 History of C++ Programming Language

    3/23

    Why programming is important??

    Critical reading :Understanding + analysis Analytical reading: Step-by-Step

    procedures to break complex problem intosmall steps

    Creative synthesis: Think about all thepossibilities

  • 8/10/2019 History of C++ Programming Language

    4/23

    Pay attention to details

    Pay attention to all the aspects Pay attention to all the calculations

    involved in program, their flow, and mostimportantly the logic of program

    Understand the fact the computers areuseless

    Dont assume that reader is intelligent Comment your code

  • 8/10/2019 History of C++ Programming Language

    5/23

    Model of a complex system

    Model: Simplified representation of salientfeatures of something, either tangible orabstract

    System: Collection of components thatwork closely together

    Syntax: Grammatical rules for forming

    instructions Semantics: Meaning/ interpretation ofinstructions.

  • 8/10/2019 History of C++ Programming Language

    6/23

    Instruction written by programmer

    Coded in a specific programminglanguage

    Programming language allow you toexpress yourself more precisely thannatural language

    Source code:: All instructions that compute aprogram is called source code

    e.g. library catalog, ATM, video game.

  • 8/10/2019 History of C++ Programming Language

    7/23

    Algorithm

    Set of instructions used to specify how tosolve a problem

  • 8/10/2019 History of C++ Programming Language

    8/23

    Syntax

    Set of rules that govern the structure ofsentences, instructions

  • 8/10/2019 History of C++ Programming Language

    9/23

    Types of languages

    Typed language: If operation defined forone data type cant be performed onanother data type

    Un-typed language: Allow any operationto be performed on any data type e.g.assembly language.

  • 8/10/2019 History of C++ Programming Language

    10/23

    Introduction

    C++ is General purpose programminglanguage

    Mid level language: Combination of bothhigh level language and low levellanguage

  • 8/10/2019 History of C++ Programming Language

    11/23

    High level language

    It is a programming language that in comparisonto high level language is more compact,abstract, easier to use and portable to mostplatforms

    They normally abstract away cpu operations likememory access models and measurement ofscope

    It can easily implement algorithms High level language is converted to assembly bycompiler

  • 8/10/2019 History of C++ Programming Language

    12/23

    Low level language It does not provide any sort of abstraction from a

    computers microprocessor First generation low level language: It was only

    understood by microprocessor; it requiresnumerous numeric codes for writing a singleinstruction

    Second generation low level language :e.g. Assembly language. It is not a microprocessors

    native language.But programmer still need tounderstand internal architecture ofmicroprocessor such as registers andinstructions e.g. cmp edx,3

  • 8/10/2019 History of C++ Programming Language

    13/23

    Why functions?

    It is a way to make programs morecomprehensive

    Each function has a clearly definedpurpose and a clearly defined interface toother parts of program

    Module: Grouping of a number of functionstogether

  • 8/10/2019 History of C++ Programming Language

    14/23

    Structured programming

    Division of a program into functions andreconstruction in the form of modules isstructured programming

  • 8/10/2019 History of C++ Programming Language

    15/23

    Data

    In procedural language data is givensecond class status But in object orientedprogramming data is given first classstatus

    Global data: The one that is acessible toall the functions

    Local Data: the one that is accessible onlyto its own confined block

  • 8/10/2019 History of C++ Programming Language

    16/23

    Object oriented programming

    Combine data and functions into a singleunit that operate on that data; such a unitis called an object

    Object functions: Provide only way toaccess its data; if you want to read a dataitem you only need to access its function;

  • 8/10/2019 History of C++ Programming Language

    17/23

    Contd

    C++ typically consists of a number ofobjects which communicate with eachother through its functions

  • 8/10/2019 History of C++ Programming Language

    18/23

    Properties of object orientedprogramming

    Abstraction Inheritence

    Encapsulation polymorphism

  • 8/10/2019 History of C++ Programming Language

    19/23

    Inheritence

    Each subclass share a common set ofcharacteristics from its parent class. Inaddition to common characteristics theyhave their own characteristics as well

    OOP class can be divided into subclasses.Original class is called parent class andthose that share common characteristicsare called subclass.

  • 8/10/2019 History of C++ Programming Language

    20/23

    Class

    Serve as template of a new data type . Itspecifies what data and functions will beincluded in objects of that class. Definingclass dont create ay object . Similar tointeger dont create any integer variable.

  • 8/10/2019 History of C++ Programming Language

    21/23

    Borland C++ Turbo C++

    Compilers

  • 8/10/2019 History of C++ Programming Language

    22/23

    Integrated developmentenvironment

    Put all the tools that you need to developprogram into a single unit

  • 8/10/2019 History of C++ Programming Language

    23/23

    Borland C++

    It is used to create program in windowsenvironment

    It is a special kind of windows programthat acts like a DOS program ; it runsunder windows but acts like a DOSprogram