Posts by Abhishek Sharma

Author Biographical Info: Not available

C++ program to construct an expression tree

By Abhishek Sharma

In this tutorial, we will see how to construct an expression tree in C++. We will construct the tree from a given string of postfix expression. But first, let’s see what is a.... Read More

Difference between std::bind() and boost::bind() in C++

By Abhishek Sharma

If you are searching for the difference between std:: bind() and boost:: bind() you have come at the right place. Here in this article, I will provide you with the differences so t.... Read More

Read a line with delimiter until the end of each line in C++

By Abhishek Sharma

Learn how to read a line with delimiter until the end of each line in C++ with examples. In this tutorial, you will see how to read a line using a delimiter. A delimiter specifies .... Read More

How to turn off a particular bit in a number in C++ ?

By Abhishek Sharma

In this tutorial, we will see how to turn off a particular bit in a number in C++. Any number can be represented in its binary form which contains 0s and 1s. And we want to convert.... Read More

_Find_next() function in C++ bitset

By Abhishek Sharma

Hello there! In this tutorial, you will learn about working of _Find_next() which is a built-in function of the bitset class. First, let us see what is a bitset. A Bitset stores bi.... 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

Convert a map to a vector in C++

By Abhishek Sharma

This is a tutorial on how to convert a map to a vector in C++. Maps are used to store key-value pairs in an ordered way. And so, to store these we need a vector of paired values. S.... Read More

Related Posts