C++ 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…

C++ STORAGE CLASS SPECIFIERS

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…

C++ Friend Functions

If we define a function as a friend function then the protected and privated data of a class can be accessed using the function.The friend can be a function, a function template or member function, a class or a class template…more…

C++ Virtual Functions

The virtual functions must be declared in the public section of the class.They are always defined in base class and overridden in derived class but it is not mandatory to override in derived class.The virtual functions should be accessed…more…

C++ Functions

Functions are a group of statements or set of statements that perform the task together. In C++, every program has at least a single function that is a main( ). The functions take the inputs and perform the task on those inputs…more…

C++ Function Overloading

Overloading means the use of the same thing for different purposes. Function Overloading is a most important feature of C++ in which two or more functions can have the same name but different parameters or arguments for the different tasks…more…

C++ Function Overriding

The function overriding means when the function has the same name, same return type and same parameters.The function overriding also means when the derived class defines the same function as defined in its base class…more…

C++ Time functions

In C++, the time( ) function will return the current calendar time as an object of type time_t.The C++ standard library does not provide a proper data type for date and time it inherits the structs and functions for date and time manipulation from C…more…

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