Posts from C++

Virtual Base Class in C++ with an Example

By Meghana Thatikonda

In this tutorial, we will learn what is a virtual base class in C++. We will also see an example of how to implement it using C++. Virtual base class in C++ In an inheritance hiera.... Read More

Removing leading and trailing spaces from a string in C++

By Md. Suhail Arif

This tutorial is focused on the strings, removing all the spaces before the string or leading to the string and the spaces after the string or trailing to the string which is enter.... Read More

Generate a random array in C or C++

By Shubham Loya

Today, in this tutorial, we will get to know how to generate a random array with random values in C and C++. So you will learn how to generate a random number and store the corresp.... Read More

Find smallest prime divisor of a number in C++

By Titichh Mishra

Hi there. Today we are going to see how to get the smallest prime divisor of any number using C++. But what if you want to implement this in C? You can do that by replacing input a.... Read More

Ratio manipulation in C++ with examples

By Ranjeet V

Hello everyone, in this tutorial, we will be studying ratio manipulation in C++. C++ has a header file separately to deal with operations related to fractions. There are many templ.... Read More

Generate pseudo random numbers in C++

By Anukasha Singh

Generating random numbers is very useful especially in simulations of games, scientific simulations, computer security, statistics modeling programs, etc. But computers produce pre.... Read More

Strong password (String problem) in C++

By Vishal Kumar

In this tutorial, we will solve the strong password problem in C++ which will have certain mentioned constraints. Let us define our constraints then we will solve the problem. Its .... Read More

Remove duplicate characters from a string in c++

By Sakshi Gupta

In this tutorial, we will learn how to remove duplicate characters from a given string using the C++ program. We will learn it in two approaches. The first one is simple and uses b.... Read More

Related Posts