Posts from C++

Pick Random Element From Vector In C++

By Bhushan Patil

In this tutorial, we will see how we can pick a random element from the vector in C++. Before moving further we should know what is vector. and how elements are stored, added, and .... Read More

Memory Allocation in static data member in C++

By Manan Gupta

In the language C++, we can create various data members using a class that is applicable to each object we create. The data members are initialized to their default value once an o.... Read More

C++ program to check if a number can be displayed using 7 segment LED

By Saurabh Salunkhe

In this tutorial we are going to learn about the logic that will check if a number can be displayed using 7 segment LED in C++. We will also implement a C++ program that will demon.... Read More

consteval specifier in C++

By Vidhi Jain

Hello folks! Today, we will discuss consteval specifier in C++. Consteval specifier declares an immediate function to produce constant. This means that every potentially evaluated .... Read More

Implement a Line Filter by Using Ranges in C++

By Vidhi Jain

Let’s talk about filtering lines in C++. We can filter lines in the file by some characters present in it. Here, we use library Ranges for filtering the lines if certain word.... Read More

Find pascal triangle upto nth depth in C++

By Swabhiman Mallick

Pascal’s triangle is a special arrangement of coefficients of the expansion of any binomial expression, such as (x+y)n . The binomial coefficients formed are written row-wise.... Read More

Group multiple occurrences of array elements ordered by first occurrence in C++

By Amit Raja Kalidindi

In this tutorial, we are going to learn how to group multiple occurrences of array elements in the order of the first occurrence of the elements in C++. Naive Solution: Let us assu.... Read More

Actual use of imbue in C++

By Sharath S

Welcome back everyone! Your wait is finally over as I am back with another interesting programming topic. So today’s topic is something that most of us either haven’t h.... Read More