Posts from C++

Vector rbegin( ) and rend( ) function in C++

By Neeraj Dusa

In this tutorial, we will understand how to use rbegin( ) and rend( ) functions in C++ STL. In C++, we have vectors that can automatically add or decrease the size which doesn̵.... Read More

Iterate vector backwards in C++

By Neeraj Dusa

In this tutorial, one can get to know how to iterate a vector from backward in C++. There are 3 methods to iterate a vector backward. In arrays, if we wanted to increase or decreas.... Read More

Check if a value exists in an array in C++

By Aastha Jain

In this tutorial, we will learn how to check the presence of a value in an array in C++. So let’s get started. An array is a group of similar types of data items that can be .... Read More

string::npos in C++

By Ankur Sinha

In this tutorial, We are going to learn about the string:: npos using C++. Let us know more about it. What is string::npos? It is a static member value with the maximum value for a.... Read More

How to initialise static variable in C++

By Ankur Sinha

In this tutorial, we will learn how we will be initializing the static variable in C++. First, let us understand how to declare them? For a Detailed study go to the link Initializa.... Read More

Dictionary in C++ with examples

By Aastha Jain

Dictionary is a collection of key, value pairs. They can be changed. Let’s understand it with an example suppose you own a bakery there is a price corresponding to each cake..... Read More

Convert int to char in C++

By Aastha Jain

In this tutorial, we will learn how to convert int to char in C++ in an easy way. Introduction An integer is a whole number that can be either positive, negative, or zero. On the o.... Read More

lower_bound() and upper_bound() in Vector of Pairs in C++

By Joyeeta Choubey

Hi folks! In this tutorial, we are going to learn and implement lower_bound () and upper_bound() in the vector of pairs in C++. Before moving forward let’s have a look at wha.... Read More