Saturday, 20 July 2013

C++ Basic Tutorial


  • Introduction and history of C++
     
  • Advantage and Disadvantage of C++ and Scope
     
  • The Parts of a C++ Program
     
  • Variables
     
  • Constants
     
  • Expressions
  • Statements 
  • Basic Classes
     
  • Inheritance
     
  • Types of Inheritance (Single, Multiple )
     
  • Types of Inheritance (Hierarchal, Multilevel, Hybrid)
     
  • Polymorphism

    C++ Overview

    Introduction Of C++

    C++ acquire the  feature of high level and low level language C++ compiled and general purpose programming language. In 1979 Bjarne Stroustrup extended C programming language known as C with Classes at Bell Labs. In 1983 the C with Classes is became C++. C++ is used in System software, application software, device drivers, embedded software, high-performance server and client applications, and entertainment software such as video games.

    History of C++

    C++ was developed by Bjarne Stroustrup in 1983 atAT&T Bell lab. Bjarne Stroustrup began work on "C with Classes" in 1979.Beginning of 1981 initial version of c++  ware made internally in AT&T lab. In c++ ,"++" is the increment operator of c which means its an extension of  C Language. C++ is a superset of C, so that most C programs can be compiled using a C++ compiler i.e. C language have series of low-level instructions that converted into C++ the computer can execute directly. But C not support C++. In C++,  include  OOP (Object Oriented Programming) features when the significance of C is same in C++. In OOP, the programmer defined not only the data type of Data Structure (DS) but also the operations that is applied on DS . The DS known as object have both data type and operation.

    C Programming Tutorials

    C++ Tutorials

    1.1    C++ Basic's Tutorial
    1.2    Learn C++ in Easy Way 

    C++ Examples

    2.1    C++ Basic Examples

    C++ Interview Questions with Answers

    3.1    C++ Subjective Questions with Answers
    3.2    C++ Interview Questions with Answers
    3.3    C++ Objective Questions And Answers
    3.4    C++ Interview Questions And Answers (Subjective)
    3.5    C++ Objective Questions
    3.6    FAQS

    Introduction Of C++:
    C++ is a Computer Programming Language .it  is an "object oriented" programming language created by Bjarne Stroustrup and released in 1985. It implements "data abstraction" using a concept called "classes", along with other features to allow object-oriented programming. Parts of the C++ program are easily reusable and extensible; existing code is easily modifiable without actually having to change the code. C++ adds a concept called "operator overloading" not seen in the earlier OOP languages and it makes the creation of libraries much cleaner.
    C++ maintains aspects of the C programming language, yet has features which simplify memory management. Additionally, some of the features of C++ allow low-level access to memory but also contain high level features.
    C++ could be considered a superset of C. C programs will run in C++ compilers. C uses structured programming concepts and techniques while C++ uses object oriented programming and classes which focus on data.

    Binding Architecture of C++:



    History of C++:

    C++ was written by Bjarne Stroustrup at Bell Labs during 1983-1985. C++ is an extension of C. Prior to 1983, Bjarne Stroustrup added features to C and formed what he called "C with Classes". He had combined the Simula's use of classes and object-oriented features with the power and efficiency of C. The term C++ was first used in 1983. 

    Prior to C++, C was a programming language developed at Bell Labs circa 1969-1973. The UNIX operating system was also being developed at Bell Labs at the same time. C was originally developed for and implemented on the UNIX operating system, on a PDP-11 computer by Dennis Ritchie. He extended the B language by adding types in 1971. He called this NB for New B. Ritchie credited some of his inspiration from theAlgol68 language. Ritchie restructured the language and rewrote the compiler and gave his new language the name "C" in 1972. 90% of UNIX was then written in C. The committee that wrote the 1989 ANSI Standard for C had started work on the C Standard project in 1983 after having been established by ANSI in that year. There were quite a number of versions of C at that time and a new Standard was necessary.

    Feature of  C++:
    The main features of the C++ are
    1. Classes
    2. Inheritance
    3. Data abstraction and encapsulation
    4. Polymorphism
    5. Dynamic Binding
    6. Message Passing
    Advantage of C++:
    1. C++ is a hybrid language-it is possible to program in either a C-like style, an object-oriented style, or both.
    2. C++ programs consist of pieces called classes and functions. You can program each piece you may need to form a C++ program. The advantage of creating your own functions and classes is that you will know exactly how they work. You will be able to examine the C++ code.
    Disadvantage of C++:
    1. Scope is also limited
    2. Platform dependent
    3. Does not give excellent graphics as compare to java
    4. Not case sensitive
    5. Less features as compared to Java& C#.
    6. Not applicable in web environment