Posts from C++

How to flatten a 2-Dimensional vector in C++

By Rishabh Agarwal

Hello Guys, In this tutorial we are going to learn how to flatten a 2-Dimensional vector in C++. Before we get into this let’s discuss what is a 2-D vector, so it is a vector.... Read More

Strand Sort in C++

By Rishabh Agarwal

In this tutorial, we will learn about one of the commonly used sorting algorithms i.e. Strand sort in C++ with algorithm. Before this I recommend you to read the tutorial on merge .... Read More

Dynamic memory allocation in C++

By Harsha Sai

Hello Learners, today we are going to learn a very important topic in C++ that is “Dynamic memory allocation. To use this tactic in C language we have different functions lik.... Read More

Find recurring sequence of a fraction in C++

By Ronak Jethava

So, guys today we will learn How to find the recurring sequence of a fraction in C++. Let’s do it together. A recurring decimal is a decimal number that has a pattern then repeat.... Read More

Priority Queue of Pairs in C++ with an example

By Meghana Thatikonda

In this tutorial, we will learn about the priority queue of pairs in C++. We will understand this along with a suitable example. Priority Queue of pairs A priority queue is an abst.... Read More

Variadic function templates in C++ with example

By Meghana Thatikonda

In this tutorial, we will learn what are variadic function templates, its syntax and how to implement it using an example in C++. Variadic function templates in C++ Templates that .... Read More

Difference between exit() and _Exit() in C++

By Ranjeet V

exit() and _Exit() functions are used to terminate a C++ program. But there must be some difference between these two otherwise what is the use of defining two functions that perfo.... Read More

For each loop in C++

By Harsha Sai

Hello Learners, today we are going to learn a very interesting topic that is foreach loop using C++ programming with implementation and working. Most of them will be familiar or he.... Read More