Skip to main content

C++ language tutorial for beginner

                         C++ language tutorial for beginner


Before i start the C++ tutorial for the beginner, one must have to know some technical terms. 



Program: 

Its a set of instruction that perform a specific task when executed by a computer.


Programming: 

It is a process of writing instruction for computer to perform a specific task.


Programmer:


 A programmer is a person who write instruction for computer in a specific programming language.
              

    Now, look at what is C++?

C++ (pronounce as C plus plus) is a general purpose object-oriented programming language (OOP), developed by Bjarne Stroustrup, and is an extension of C language.







Let's look at Brief history of C++ language:-

The mastermind behind the inception and development of C++ programming language is Bjrane  Stroustrup. He developed C++ at AT&T Bell Laboratory.  Let's start with a brief history of C as C++ is called the successor of C programming. 
C programming language was first introduced by Denis Ritchie at AT&T's Bell Laboratories in USA in 1972 and was implemented for the first time in DECPDP-11 computer. Denis Ritchie used the concepts of BCPL and B language  to deveplod C and added data typing and some other powerful features.
The inception of C++ programing language began in 1979 when Bjarne Stroustrup was working in his Ph.D.  thesis. During  that period Struoutrup used to work with Simula (regarded as the first language to support OOP paradigm).

In 1983 , it was  named C++ and it include some add-on featuressuch as classes, inheritance, in-lining, default function arguments, polymorphism, encapsulation and strong type checking.

Comments

Popular posts from this blog

Advantage and disadvantages of Structure and object oriented programming

In my last post, i discussed about structured oriented programming, object oriented programming and language processors. Today i am going to discuss about :- 1. Advantages and Disadvantages of structured oriented programming. 2. Advantages and Disadvantages of object oriented programming. 3.Difference between them. And in the next post i will discuss about:- 1. 1st C++ program and explanation. 2. Structure of a C++ program. 3. Data types, Identifiers, Variable and Keywords. Let's start: Advantages of Structure oriented programming:- 1. It is easy to understand. 2. It is to test a program that is divided into modules(sub-problem) and sub-module(sub-sub-problem). 3. Modification is easier. 4. It results in speedy execution of the program. 5. Development of modules is easier. Disadvantages of Structured oriented programming:- 1. Modules occupy more space in the memory. 2.  Testing of every module is time consuming process. 3. Combination of modules becomes di...

Structured and Object oriented programming

In the last post, i was discuss about what is c++?, a brief history of C++. Now in this post, i am going to discuss about:- 1. what is structured oriented programming? 2.  what is object oriented programming? 3. what is language processor and what are the different types of language processor? And in the next post i will discus about :- 1. what is the advantages and disadvantages of modular(structure) programming? 2. Advantages and disadvantages of object oriented programming. 3. Difference between them Let's start:- Structured oriented programming:- In this approach of programming a problem at hand is divided into sub-problems.Then each sub-problem is further divided into sub-sub-problems and so on. This process is continues till we reach to a stage when each sub-problems can easily be handled. Thus a complex problem is broken into a series of steps. Each sub-problem or sub-division is known as a module .  A module  in itself can be a procedure ...

size and range of basic data types and modifing the basic types.

Size and range of basic data types:-   Modifying the basic types:-  Except for type void, the basic data types may have various modifiers preceding them.  You use a modifier to alter the meaning of the base type to fit various situations more  precisely. The list of modifiers is shown here: signed unsigned long short You can apply the modifiers signed, short, long, and unsigned to integer base  types. You can apply unsigned and signed to characters. You may also apply long to  double. The above  table shows all valid data type combinations, along with their minimal ranges and approximate bit widths. (These values also apply to a typical C++  implementation.) Remember, the table shows the minimum range that these types will  have as specified by Standard C/C++, not their typical range. For example, on  computers that use two's complement arithmetic (which is nearly all), an integer will have a range of at least 32,76...