Question:

How can i create a part in c++ where my program just waits for a few seconds before proceeding with its job?

by  |  earlier

0 LIKES UnLike

i want to print text like :

(ROLLING THE DICE)

or

(THINKING...)

and i wanted the program to just wait a little bit before displaying the answer or the move. can anyone help? thanks!

 Tags:

   Report

2 ANSWERS


  1. Hello, there is  2 way:

    in the <DOS.H> use sleep(MS) or delay(MS), MS is the time in millisecond format

    ;)


  2. Try Sleep( length in milliseconds );

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.