C++ print a random number

C++ program to print a random number

Random number generator in C++ : This tutorial is to write one Random number generator program in C++. Actually it is hard to create one random number generator without using any library. You need some start point that is always different and always creates one random value. For example, time. Read more…

setbase operator in C++

C++ setbase function : setbase() is a manipulator function. This is used to change the basefield of a value. This function is defined in iomanip library. So, we need to include it to use setbase.   Function definition : setbase is defined as below : setbase(int base) The parameter base Read more…