Posts from C++

How to reverse a vector in c++

By Manisha Rathore

In this tutorial, we will learn how to reverse a vector using c++. Here we will use the STL(standard template library) library. Here STL is a set of c++ template classes. Using the.... Read More

How to Terminate a Loop in C++?

By Yogender Narayan

In this tutorial, we are going to learn about the topic of termination of the loop in c++. For the execution of a block of statements repeatedly we use the loop. What is terminatio.... Read More

Two water jug problem in C++

By Adrika Roy

In this tutorial, we will learn how to solve the two water jug problem in C++. PROBLEM STATEMENT: You are given two unmarked jugs with capacities x and y liters. Determine the move.... Read More

Solution of N-Queen problem in C++ using Backtracking

By Zeeshan Alam

In this tutorial, we will learn about how to solve the N-QUEEN problem in C++ by using backtracking. Here we will also look at some examples to understand the problem. N-Queen in C.... Read More

Insertion Sort in C++

By snormy

Here we are going to learn how to implement Insertion Sort in C++. ‘Sorting’ in programming refers to the proper arrangement of the elements of an array (in ascending or desce.... Read More

Create all possible strings from a given set of characters in c++

By Sakshi Gupta

In this tutorial, we are going to learn how to print all possible strings of any length from a given string or a given set of characters in C++. We can also modify our code by keep.... Read More

Selection Sort in C++

By snormy

Here we are going to learn how to implement selection sort in C++. Hope you will enjoy learning it. ‘Sorting’ in programming refers to the proper arrangement of the elements o.... Read More

How to find sum of digits in C++

By Neha Prasad

In this tutorial, we will learn how to find sum of all digits of a number in c++ with some easy examples. Sum of digit means add all the digits of the number, for example, a number.... Read More