Posts from C++

Shuffle a matrix elements in C++

By Rakesh

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

Generate random 2D array in C++

By Neeraj Dusa

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

Generate random number between 1 to 100 in C++

By Neeraj Dusa

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

Sort an array and remove the duplicate elements in C++

By Tanmaay Kankaria

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

How to return a vector in C++

By Neeraj Dusa

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

Remove URL from a string in C++

By Neeraj Dusa

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

Detect URL in a string in C++

By Neeraj Dusa

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

How to trim a string in C++

By Neeraj Dusa

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

Related Posts