How do I put a delay in my coding?

Lets say I'm writing a program that only shows texts to the user, and requires no user input whatsoever. How would I delay it so that I can make certain text (a specified paragraph, for example) display, then wait 20 seconds before it continues with the next paragraph?
Problem solved.

Sleep(5000) for 5 second wait.
The Sleep() function accept as a parameter how many milliseconds you want your program to pause - or sleep...

If you want 20 seconds then you just use Sleep( 20000 ). You don't have to do Sleep( 5000 ) 4 times...
O_O
Oh, god.
I never thought anyone could read that like that...
I don't know if he did read it like that, hope not, but I have seen people doing it, that's why I said that.
That is kind of really obvious, Mitsakos.
I remember there was a wait(seconds); so wait(20);
There's no such function in the standard library.
Topic archived. No new replies allowed.