C++ programming tutorial

C++ Introduction:

What is C++?

C++ is a programming language which is a superset of the C language. The C language is known as C language because it is a successor of B language and was developed by Dennis Ritchie. C++ is a middle level programming language and it is developed by Bjarne Stroustrup in 1979 at Bell Labs as the extension to C language and was originally named as C with Classes but later it was renamed as C++ in 1983. The C++ language can run on various platforms like Windows, Mac OS, and even on various versions of UNIX. The C++ is an object oriented language. This C++ tutorial will help new learners to understand all C++ concepts in easy way with examples.

Start C++ programming tutorial

C++ Tutorial ( C++ Programming ) topics:

C++ Introduction

C++ is a programming language which includes the main four pillars of object oriented development. Those concepts are: Data Hiding, Inheritance, Encapsulation, Polymorphism. What are the features of C++? C++ is an object oriented programming language…more…

C++ Basic program

Introduction: Now, before learning the C++ language, you need to learn that how to write and compile the programs in C++ language. To understand the program briefly let us has a look at the example…more…

C++ Data types & Modifiers

Data types are used to define the variables that the same of type data it can store in memory. The data types determine the type of data to be stored in memory. The data types are used to represent the different values to be stored in the variable…more… 

C++ Identifiers, Keywords

To identify a class, variable, function or any of the other user defined item you use identifiers so, this concept is known as Identifiers. The identifier starts with a letter ‘A’ to ‘Z’ or ‘a’ to ‘z’ or from underscore (_) followed by zero or more letters, underscores and digits (0 to 9)…more… 

C++ Constants

The constants can be referred as fixed values that the program cannot change, it cannot be altered. The constants are also known as Literals. They are initialized at the time of creation and new values cannot be assigned later on…more… 

C++ Variables

Variables are used to store the values which can be modified later on in the program. The variables can be declared in many ways and every way with different memory requirements. It is a name of memory location that is allocated by the compiler depending upon the data type of the variable…more… 

C++ Operators & Expressions

The operators are the special type of functions that takes one or more parameters and gives new result. It is a symbol that tells the compiler to perform the mathematical and logical manipulations. The programming language like C or C++ is incomplete without the use of operators…more…

C++ Decision control statements

The decision control statements are the decision making statements that decides the order of execution of statements based on the conditions. In the decision making statements the programmer specify which conditions are to be executed or tested with the statements to be executed if the condition is true or false…more…

C++ Loop control statements

The loops are needed to execute a block of code many of the times. In this, basically the statements are executed sequentially which means the first statement in a function is executed first than the second statement and so on. The loops are used to execute a single statement or the group of statements multiple times…more…

C++ Type qualifiers

The type qualifiers are like a token which is added to a variable and it adds an extra quality like specifying constant-ness to a variable. It provides one or two properties to an identifier. The type qualifier can appear with any type specifier but they cannot appear after first comma in a multiple item declaration…more…


The storage specifiers define the scope or visibility and the lifetime of the variable or function within a program.The lifetime is a duration till which the variable will remain active and visibility is in which the module of the program the variable is accessible…more…

C++ Arrays

An array is a collection of similar elements of same data type at a contiguous memory location. The array is a data structure which stores the fixed size of elements in sequence.The size and the data type of an array cannot be changed after the declaration…more…

C++ Strings

The string is an object of the string class and it is defined in the header file i.e. <string.h>.The string class has many constructors that are called to create a string object.It represents the sequence of characters. The operations which can be performed on strings are comparison, concatenation, conversion, etc…more…

C++ pointers

Pointers are one of the best features of C++ in comparison to other programming languages like Java, Python etc. It is a variable whose value is the address for another variable.We need to declare the variable as a pointer if we want to use pointers with variable…more…

C++ Structures

In C++, structure is a combination or group of different data elements that are grouped together under a single name.The data elements are known as data members who have different data type and length.It is a user defined data type that allows you to combine data items of different kinds…more…

C++ Enumeration

Enumerations are a user defined data type which consist integral constants. In this, you can specify a set of values for a variable and the variable can select only one out of the set. It has a fixed set of constants.To define enumerations we use ‘enum’ keyword. Enumerations can be used to define days of a week, month, weathers, etc…more…

8.C++ Friend function…

9.C++ virtual function

10.C++ Function overloading

11.C++ Function overriding

12.C++ Time functions

13.C++ Data Structures

14.C++ Objects & Classes

15.C++ Constructors

16.C++ Operator Overloading

17.C++ Objects & Functions

18.C++ Abstraction

19.C++ Encapsulation

20.C++ Inheritance

21.C++ Inheritance access control

22.C++ Multilevel & Multiple inheritance

23.C++ Polymorphism

24.C++ Overloading

25.C++ Interfaces

26.C++ Dynamic memory allocation

27.C++ Preprocessor directive

28.C++ Namespaces

29.C++ Multi threading

30.C++ Templates

31.C++ File handling

32.C++ Exception handling

33.C++ Signal handling

Prev     Next

Share this website !!!
Facebook Twitter Linkedin