Posts from C++

Rotation of a square matrix by 90 degrees in c++

By Sakshi Gupta

In this tutorial, we will learn how to rotate a square matrix by 90 degrees in c++. There are various ways to rotate a square matrix by 90 degrees(We will learn other ways in other.... Read More

Merge sort in c++ (A Divide and Conquer algorithm)

By Sakshi Gupta

In this tutorial, we will learn another technique of sorting i.e Merge sort. First, we will learn what is the merge sort and what is how does it uses the divide and conquer algorit.... Read More

Program to validate Email-Id using regex in C++

By Deviprasad D Mahale

In this tutorial, we will be learning how to validate email id using C++. Regular expression can be used to search for a specific pattern in a string. In C++  we need to include &.... Read More

How to show image in c++ using opencv

By Naga jyothi

Learn how to display or show an image using C++ using OpenCV. In order to display images, we need to have “openCV” with 2 modules which are “core” and ̶.... Read More

Find trace and normal of matrix in C++

By Yash Shakya

This C++ program is able to find the trace and normal of a matrix in the same way that we find in mathematics. Basically the trace of a matrix is the sum of main diagonal of a matr.... Read More

Find size of string without using library functions in C++

By Yash Shakya

In this tutorial, we will find the size of string without using library functions in C++. In many situations, you are compelled not to use library functions like strlen(). Well, in.... Read More

Difference between delete and free() in C++ with an example

By Deviprasad D Mahale

In this tutorial, you will be learning the difference between delete and free() in C++ with a simple example. C++ provides two dynamic allocation operators: new and delete  C++ su.... Read More

How to swap both diagonals of a matrix in C++

By Alok Singh

In this tutorial, we will learn how to swap boh the diagonals of a matrix in C++ with an example, algorithm. The square matrix has two diagonals. one, which starts from the top-lef.... Read More

Related Posts