Posts from C++

Priority Queue in C++ Standard Template Library (STL)

By Joyeeta Choubey

In this tutorial, we are going to learn what are Priority Queues in Standard Template Library (STL). So let’s know a little about Priority Queues. What are Priority Queues? T.... Read More

How to find index of maximum and minimum element in vector in C++

By Joyeeta Choubey

In this tutorial, we are going to find the index of maximum and minimum elements in vector in C++. In vectors, the size grows dynamically. Thus one can change the size dynamically .... Read More

How to set all elements of an array to 0 in C++

By Raghav Khandelwal

In this tutorial, we are going to learn how to set all the array elements to 0 (zero) in C++. Arrays in C++ are defined as a collection of items of a similar type stored at a conti.... Read More

Generate RGBA Portable Graphic Image in C++

By NIVEDITA KUMARI

In this tutorial, we will learn how to generate an RGBA portable graphic image in C++. RGBA stands for Red, Green, Blue, Alpha. It is three passage RGB color model and the fourth p.... Read More

Delete last element from a set in C++

By NIVEDITA KUMARI

In this tutorial, we will learn how to delete the last element from a Set in C++. First, let me introduce to you what are Sets. A Set is an associative container(a group of the cla.... Read More

Declare a 2D array in C++ using new operator

By Raghav Khandelwal

In this tutorial, we are going to learn how to declare a 2D array in C++ using new operator. To begin with, first, let’s understand what are multidimensional arrays. In simpl.... Read More

How to Remove all the elements from an array having a specific value in C++

By Gagan Gupta

In this tutorial, we will learn how to remove all the elements from an array having a specific value. Removing all the elements from an array having a specific value in C++ In the .... Read More

C++ program to calculate simple interest and compound interest

By Joyeeta Choubey

In this tutorial, we will learn how we can calculate simple interest and compound interest using the C++ program. So let’s know what simple interest and compound interest are.... Read More