Posts from C++

How to draw an arc in C++

By Arpit Jain

Hi guys, today we will see how to draw an arc in the C++ language. Before, we start, let me tell you that whenever we want to create any graphic in C++, we have to add a header fil.... Read More

C++ program to Rotate bits

By Abhishek Sharma

Hey there! In this tutorial, we will learn how to rotate bits of a number using the C++ programming language. Here is what rotation means: Suppose there is a number 13 and we want .... Read More

Check if two nodes are cousins in a Binary Tree in C++

By Abhishek Sharma

In this C++ programming tutorial, we will see how to check if two nodes are cousins in a binary tree. Firstly two nodes are cousins when they are at the same depth but they have di.... Read More

Find Frequency of each element in an unsorted array in C++

By Arpit Jain

Hi guys, today we will learn how to find the frequency of each element in an unsorted array in C++. We can do this in many ways but I will be using map to solve this problem. Stan.... Read More

How to sort a 2D vector in C++

By Dinesh Kumar

In this tutorial, we are going to learn how to sort a 2D vector in C++. Here we will learn about the 2D vector, how to sort a specific row in 2D vector, and how to sort the entire.... Read More

polar() function for complex number in C++

By Dinesh Kumar

In this tutorial, we are going to learn about polar() function for complex number in C++. Here we will learn about polar() function uses, and its header file. After that, we will s.... Read More

Find nth Node from End of Linked List – C++

By Pranav Prakasan

In this article, we discuss a method and a program to find the nth node from the end of a linked list in C++. We know that a singly-linked list is a data structure that is linear a.... Read More

How to pass a 2D array as a parameter in C++

By Arpit Jain

Hi guys, today we will see how to pass a 2D array as a parameter in C++. Before moving to the topic let us discuss what is a 2D array. 2D Array: It can be defined as an array of ar.... Read More