Posts from C++

Color text output in Console in C++

By YANNAM SATYA AMRUTHA

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

How to delete empty files from a directory in C++

By Paras Bhargava

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

Pop last element of a vector in C++

By YANNAM SATYA AMRUTHA

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

How to check if a vector contains a particular value in C++

By HARI HARAN B

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

Remove last n occurrences of substring in a string in C++

By Aakanksha Thakar

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

How to remove vector elements by index in C++

By HARI HARAN B

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

How to print a string to console in C++

By YANNAM SATYA AMRUTHA

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

How to find the numbers from their Sum and XOR values in C++

By Prajwal Khairnar

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

Related Posts