Horje
how can we create 4 digit random number in c++ Code Example
how can we create 4 digit random number in c++
#include<time.h>

int number;

number=rand()%1000;
srand ( time(NULL) );
Source: www.py4u.net




Cpp

Related
lambda function qt connect Code Example lambda function qt connect Code Example
prime factorisation of a number in c++ Code Example prime factorisation of a number in c++ Code Example
input full line as input in cpp Code Example input full line as input in cpp Code Example
Character cin(userInput) in c++ Code Example Character cin(userInput) in c++ Code Example
cin does not wait for input Code Example cin does not wait for input Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9