Posts from C++

Count smaller elements on the right side of an array in C++

By Manisha Rathore

In this tutorial, we will learn to count smaller elements on the right side of an array in C++. We will write a function to count elements which are smaller than the current elemen.... Read More

Remove characters from the first string that are in the second string in C++

By Manisha Rathore

In this tutorial, we will learn to remove the characters from the string are in the second string in C++. Algorithm: Firstly, there are two input strings. Now initialize input_inde.... Read More

Print array-items containing all characters of a word in C++

By Manisha Rathore

In this tutorial, we will learn to print array-items containing all characters of a word in the C++ programming language. We have an array and string and we have to print array ite.... Read More

C++ program to convert JSON elements into an array

By Gagana Gonchikar N

In this tutorial, we’ll learn how to convert JSON elements into an array using C++ programming language. C++ directly cannot read the JSON values. So, we need to build an ass.... Read More

C++ program to find the last Saturday of each month in a given year

By Gagana Gonchikar N

In this tutorial, we’ll learn how to find the last Saturday of each month in a given year in C++. Let us see an example of how this program works Enter the year: 2020 January.... Read More

Matrix transpose using Armadillo in C++

By Shubham Kumar Singh

Fellow coders, in this tutorial we are going to learn about matrix transpose using a high-quality linear algebra library in C++ called ‘armadillo’. Before we move on wi.... Read More

C++ program to count the number of sentences from a text file

By Gagana Gonchikar N

In this tutorial, we’ll learn how to count the number of sentences from a text file using C++ programming language. Here the text file name can be anything as per the user wi.... Read More

Adjacency Matrix representation of graph in C++

By Himanshu Raj

An adjacency matrix is a square matrix used to represent a finite graph. It is a way of representing a graph as a matrix of booleans (0’s and 1’s). The boolean value of.... Read More