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.
Pair In C++ Example | C++ Pair Program
Pair In C++ Example is today's topic. PAIR is a container that is present in the STL library of C++, which consists of two data elements or objects. The pair container is a simple container defined in <utility> header consisting of…
Multiset in C++ Example | C++ Multiset Program
Multiset in C++ Example | C++ Multisets Program is today's topic. Multisets are containers very much similar to sets; the main difference in multisets is that it can have multiple elements with the same values, unlike in sets. Multisets…
Stack in C++ Example | C++ Stack Program And Algorithm
Stack in C++ Example | C++ Stack Program is today's topic. The stack is a data structure that works on the principle of LIFO(Last in first out). In stacks, we insert element from one side as well as we remove the items from that side only.…
Priority Queue in C++ Example | C++ Priority Queue Program
Priority Queue in C++ Example | C++ Priority Queue Program is today's topic. The queue is a data structure whose implementation is based on FIFO (First In First Out), i.e., where insertion place at the rear and deletion at the front.…
Deque in C++ Example | C++ Deque Program
Deque in C++ Example | C++ Deque Program is today's topic. Deque stands for a double-ended queue. It is pronounced as "deck". It is containers that have dynamic sizes and can be expanded or contracted on both the ends, i.e., both the ends…
Goto Statement in C++ Example | C++ Goto Statement Program
Goto statement in C++ Example | C++ Goto Statement Program is today's topic. Goto is an unconditional jump that is used to transfer the control of the program to a given label which is needed to be mentioned by the programmer. hA goto…
Continue Statement in C++ Example | C++ Continue Statement Program
Continue Statement in C++ Example | C++ Continue Statement Program is today's topic. Continue works in parallel with the break statement. The only difference is that the break statement completely terminates the loop while the continue…
Do while Loop in C++ Example | C++ Do-while Loop Program
Do while Loop in C++ Example | C++ Do-while Loop Program is today's topic. Before understanding do while loop, we must have an idea of what loops are and what it is used for. Loops are used when we want a particular piece of code to run…
Break Statement in C++ Example | C++ Break Statement Program
Break Statement in C++ Example is today's topic. The break statement is used to terminate the loop. When we use the break statement, the control from the loop iterations stops, and the control returns to the very first statement after the…
Switch case in C++ Program | C++ Switch Example
C++ switch is an inbuilt statement that uses a switch case that is prolonged if-else conditions like we have many conditions, and we need to perform different actions based on that condition. Switch case statements are used if we want a…
While Loop in C++ Program | C++ While Loop Example
While Loop in C++ Program | C++ While Loop Example is today's topic. For understanding while loop, we must have prior knowledge of loops in C++. Loops are used when we want a particular piece of code to run multiple times. We use loops to…