In this tutorial, we will learn how to shuffle matrix elements in C++. To do this we should know how to do randomization in C++. Generating a random number in C++ We will use the r.... Read More
In this tutorial, we will learn how to generate a random 2D array in C++. We use rand( ) and srand( ) functions in this tutorial. Please refer How to generate random numbers betwee.... Read More
In this tutorial, we will see how to generate a random number between 1 to 100 in C++. rand( ) function in C++ It’s an inbuilt function in c++, which returns a random number .... Read More
In this article, we are going to learn how to sort an array and remove the duplicate elements in C++. We first get the array size and the array elements from the user. As we want t.... Read More
In this tutorial, we will discuss how to return a vector in C++. There are 2 ways to return a vector in C++ i.e. by value and by reference. We will see which one is more efficient .... Read More
In this tutorial, one can get to know how to use regular expression and how to use it for removing a URL from a given string in C++. Regular Expressions Regular Expressions are a .... Read More
In this tutorial, one can get to know how to use regular expression and how to use it for detecting a URL in a given string in C++. Regular Expressions Regular Expressions are a s.... Read More
In this tutorial, we will discuss how to trim leading and trailing white spaces from a string in C++ Trim string with built-in methods in C++ We use inbuilt “find_first_not_o.... Read More