Browsing Category
C++
C++ is a general purpose programming language and widely used now a days for competitive programming. It has imperative, object-oriented and generic programming features. C++ runs on lots of platform like Windows, Linux, Unix, Mac etc.
C++ If-else Statements Example
If-else Statements in C++ Example Tutorial is today's topic. When we need to execute a particular block of code only when a condition is met, we use if-else statements. When we execute statements on conditions, we call it decision making in…
Multithreading In C++ Example | C++ Multithreading Tutorial
Multithreading In C++ Example Tutorial is today's topic. Multithreading is a type of model which at the time of execution allows multiple threads to exist within the context of the process such that they execute independently, but they…
Queues in C++ Example | C++ Standard Template Library
Queues in C++ Example | C++ Standard Template Library is today's topic. Queues are an abstract data structure which follows the FIFO algorithm, i.e. the data item which is put first in the queue will be accessed first. Queues are open at…
Multiple Multilevel and Hierarchical Inheritance in C++ Example
Multiple Multilevel and Hierarchical Inheritance in C++ Example is today's topic. Before getting started with Multiple, Multilevel, and Hierarchical inheritance, it is essential to understand inheritance. Inheritance allows properties of…
C++ Recursion Example | Recursion Program In C++ Tutorial
C++ Recursion Example | Recursion Program In C++ Tutorial is today's topic. When a function calls itself, it is known as recursion. The function which calls the function itself is known as a recursive function. The main aim of recursion is…
C++ Insertion Sort Example | Insertion Sort Program In C++
C++ Insertion Sort Example | Insertion Sort Program In C++ is today's topic. We are going to discuss insertion sort in C++, though this sorting technique is not that much efficient in comparison to other Sorting Algorithms like QuickSort,…
Polymorphism in C++ Example | C++ Polymorphism Tutorial
Polymorphism is one of the essential features of object-oriented programming that allows the class object to behave differently at different times. The word polymorphism is derived from a combination of greek word poly + morphs where poly…
C++ Heap Sort Example | Heap Sort Program In C++
C++ Heap Sort is a sorting method based on comparisons between the elements. The heapsort is a comparison based sorting technique based on a Binary Heap data structure. The sorting method works on the principle of binary heap data…
C++ Virtual Base Class Example Tutorial
C++ Virtual Base Class Example Tutorial is today's topic. Virtual base classes come in handy during multiple inheritance. During inheritance, it is quite common to receive multiple instances of a single base class via different routes which…
C++ Assert: How to Do Assertions In C++ with Example
Assertions are statements that are used to explicitly check for logically incorrect conditions in different segments of the code. If the assumption made by the assertion statement is wrong, it shows an error message in the output stream.…
Abstract Class in C++: How to Use C++ Abstract Class
C++ abstract class is conceptually a class that cannot be instantiated, and it should be implemented as a class with one or more pure virtual (abstract) functions. A pure virtual function must be overridden by any concrete (i.e.,…