Slowing down text ouput

Does anyone know how to slow down the computer's text output to the screen? I'm trying to write a short text program that displays the output a little at a time so that the user will see the text as it's being written.
Do you want it on some kind of timer, or just to wait for a keypress?
Do you want it by the screenful, by the line, or by the character?
I just wanted to have it pause between outputting the letters. (For emphasis on a certain part of the output.) Anyway, I found this in the Visual C++ help files, and it served my current purposes. Now I'm just trying to learn a little more about the <ctime> header. Thanks.

1
2
3
4
5
6
7
8
9
sleep( (clock_t)3 * CLOCKS_PER_SEC );

void sleep( clock_t wait )
{
   clock_t goal;
   goal = wait + clock();
   while( goal > clock() )
      ;
}
Topic archived. No new replies allowed.