In general, when we execute any program in C++ we observe that the output text is in white color on black background. But in C++, we can change the color of the text on the console.... Read More
Here in this tutorial, we are going to learn how to delete empty files from a directory in C++. The <filesystem> library in C++ 17 provides a very powerful method to iterate .... Read More
In this article, we will discuss how we can pop the last element of a vector and reduce its size by one. Before getting into the topic, let’s discuss what are vectors and the.... Read More
Finding whether a vector contains a particular value, can be done in linear time if it’s a random vector. If it’s known that the vector is sorted then this can be further o.... Read More
This tutorial will see how to remove the last n occurrences of the substring in a string in C++. The string is said to be substring if each character from it is present in the pare.... Read More
Removing elements from a particular position in an array is essential in many programming applications and in this article, we will learn about different ways of performing this on.... Read More
In other languages like C programming, we use the printf function to print a string to the console. In this article, we will discuss how we can print a string to a console in C++. .... Read More
This tutorial will help all the users to learn How to find the numbers from their Sum and XOR values. Once the user enters the two values, one for sum and the other for XOR, we can.... Read More