Posts from C++

How to set a string null in C++

By Joyeeta Choubey

Hello readers!  In this tutorial, we are going to learn how to set a string null in C++. Let’s have a look at how we can do this. We can do this using the std::string::clear.... Read More

How to return null vector in C++

By Joyeeta Choubey

Hello folks! In this tutorial, we are going to learn how we can return a null vector in C++. Before going deep into the topic let’s understand what are null vectors. Null Vec.... Read More

Remove empty elements from a vector in C++

By Aastha Jain

In this tutorial, we will discuss an easy way using which you can remove empty elements from a vector in C++. So let’s get started.   1) Including header file:- Before s.... Read More

Take input from the user and save it in a .txt file in C++

By Bhargav

In this tutorial, we will learn how to take input from users and save that in a .txt file in C++. While writing this program we use fstream and create a txt file named new file and.... Read More

Create a URL shortener in C++

By Neeraj Dusa

In this tutorial, we will learn how to shorten a URL in C++. URL shortening is used to create a unique shorter alternative for long URLs. These save a lot of space while storing, d.... Read More

Define constant variables in C++ header

By Joyeeta Choubey

Hello readers! In this tutorial, we are going to learn how we can define constant variables in the C++ header file. In C++ constant variables are defined as the types of variables .... Read More

Map lower_bound() function in C++ STL

By Aastha Jain

Welcome learners!! In this tutorial, you will be learning about the lower_bound function in Map in C++ STL. Before diving into the code let’s discuss it briefly. Map lower_bo.... Read More

How to find Median in a stream of integers (running integers) in C ++

By Pratik Tayade

In this topic, we are going to learn how to find median in a stream of integers ie. running integers.  First of all, we are going to discuss the Median. Median can be simply state.... Read More

Related Posts