≡ Menu

C++ Programming

Fibonacci was an Italian mathematician who introduced this subject to European mathematics, but the similar array was mentioned even before his time. There are two definitions of Fibonacci numbers with slight variation. Both are pretty similar but little different at the same time. First: 0, 1, 1, 2, 3, 5, 8, … Second: 1, 1, [...]

{ 22 comments }

STL Tutorial: How to use C++ Vector with Example Program

Vector is an important part of a STL (Standard Template Library). On a very high-level, STL library has lot of containers that are often used, and it has few methods that could be applied on those containers. Basically STL has several ready-to-use common classes that you can use in your C++ programming. We’ll cover STL [...]

{ 9 comments }

C++ Template Functions Explained with an Example Program

Let us assume that we are in the situation where we need to create a function that calculates the absolute value of a number. When you have a number that is positive, then absolute value of the number is that same number, but if the number is negative, then the absolute value of the number [...]

{ 10 comments }

Once you understand the basics of C++ programming language, it is essential for you to develop your problem solving skills using C++ program. In other words, you should know how to develop your programming logic to solve a given problem. In this tutorial, we’ll give a simple binary problem, which you should solve by writing [...]

{ 31 comments }

Top 10 Mistakes Not to Make in a Programming Interview

If you are a programmer, you already know that when you apply for a programming job, the interview process is little different than any other technical job interviews. In this article we will discuss 10 mistakes that you should avoid in a programming interview. 1. No Practice for Writing Code on Paper or Whiteboard This [...]

{ 12 comments }

How to Use C++ Operator Overloading with an Example Program

Operator overloading is one of the advanced concepts of C++.  It is a feature through which most of the standard operators can be used with class objects. When you use an expression like ‘2 +3’, you know that the answer will be the sum of two integers. This is because the compiler knows how to [...]

{ 20 comments }

Inheritance is the property by which a class can inherit data members and functions of another class. In this case, the class which is inherited is known as base class while the class which inherits is known as derived or child class. In this tutorial let us study the concept of inheritance in C++ programming [...]

{ 6 comments }

How to Write C++ Virtual Functions with Examples

In C++, base class and derived class is a popular example of a concept that mirrors real life hierarchy. Apart from that there are several small but really useful concepts that are specially designed to keep the code simple and make life easier for a C++ programmer. One such concept is C++ virtual functions. In [...]

{ 9 comments }