Skip to content

Category Archives: C++

Ordered Set contains UNIQUE elements in sorted order just like set. While dealing with an ordered set with duplicate elements, the pair<int, int> data type… Read More
Map is an associative container available in the C++ Standard Template Library(STL) that is used to store key-value pairs. Let’s see the different ways to… Read More
An unordered_set is an associated container available in the C++ Standard Template Library(STL) that is used for unique elements without any specific ordering, it internally… Read More
unordered_map is an associated container available in the C++ Standard Template Library(STL) that is used to store key-value pairs. It internally uses the working principle… Read More
A set is an associative container available in the C++ Standard Template Library(STL) that is used for unique elements in a specific order, it internally… Read More
This article focuses on discussing how to use cout for multi-line printing. This can be easily done using any of these two methods: Using endl.… Read More
A text file is the one in which data is stored in the form of ASCII characters and is normally used for storing a stream… Read More
In this article, we will develop a C++ game for guessing a secret number with three difficulty levels.  In this game, the computer generates a… Read More
Strict type checking means the function prototype(function signature) must be known for each function that is called and the called function must match the function… Read More
A constructor is a special type of member function whose task is to initialize the objects of its class. It has no return type so… Read More
In C++, an increment operator is used to increment the value of the variable by 1. The symbol ++ is used to represent the increment… Read More
A pattern, in general, refers back to the unique format which enables one to carry out positive responsibilities with ease. Technically, styles may be taken… Read More
Let’s implement bitset in C++, such that following operations can be performed in stated time complexities : init(int size): initializes a bitset of size number… Read More
Pre-requisites: Inheritance in C++, Multiple Inheritance in C++ In multiple inheritances, when one class is derived for two or more base classes then there may… Read More
In this article, we will discuss about the 10 most used inbuilt functions of C++ which will help you to save time and make code… Read More

Start Your Coding Journey Now!