Video Tutorials

These articles consist of an introductory write-up that explains each concept in as much depth as possible. Each article also contains a video tutorial that can be watched to enhance your understanding.

Last Reviewed and Updated on September 18, 2018

These articles consist of an introductory write-up that explains each concept in as much depth as possible. Each article also contains a video tutorial that can be watched to enhance your understanding.

Advertisement

Recently Added and Reviewed

We are constantly adding new content and reviewing older posts so that we can provide live information, updated with new facts and interesting things related to them. These are the most recently added and reviewed posts. Click on them to go through them.

Operator Overloading

I begin with a walkthrough on how to overload an operator step by step. A very simple class has been taken as an example. It is followed by examples on overloading the inserters and extractors, the comma operator, then the subscript operator. The article ends with an example of overloading the function call operator and the C++ functors.

Copy Constructor and the Assignment Operator

In this article I discuss the purpose served by the copy constructor, the occasions where it is required, when should a developer provide a custom definition. There is also a discussion of the assignment operator and its overloading. Also discussed are copy elision, and the empirical rule of three.

Header Files and Linkage

This article describes the need for header files in a c++ program. It explains what should a header file contain. We also explain how to put function declaration and definition in two separate files, and how to use that function in a third file such as the main cpp file of a project. Linker and compiler errors are also explained, and lastly, we discuss the extern keyword and the question of internal and external linkage in C++.

Nested Classes

Classes can contain other structs and classes within their scope, The contained classes are called nested classes and structs. We also discuss the typedef keyword in this chapter.

Prefix and Postfix Operators in C

the prefix increment, decrement operators and their postfix counterparts.

Looping an Array

how to use a loop to display elements of an array, and how to process an array

for Loop in C

the syntax and programming examples on the use of for loop

First C++ Program

how to write your first c++ program