View Full Version: pausing, using gotoxy,using delay()

C++ Learning Community > C++ Help > pausing, using gotoxy,using delay()


Title: pausing, using gotoxy,using delay()
Description: need help doing a few things (edited)


ih8censorship - June 29, 2003 02:44 PM (GMT)
ok im making a slot machine type game and i got it so its random (i think) using srand() and rand(). but since the program calls 3 functions that are supposed to generate random numbers so fast that there all the same heres what i have in my cout now:

CODE

cout<<randomizer()<<randomizer()<<randomizer()<<"\n";


but i think i need something like this say if i wanted to pause for 3 seconds

CODE

cout<<randomizer()<<3seconds<<randomizer()<<3seconds<<randomizer()<<"\n";



in my srand i have
CODE

unsigned int num;    
srand( time(0) );



**edit** i think i figured out what to use i think i can use delay(1000) to delay it for a bit, cause i saw that in a source code i downloaded but there was so much stuff included in that source i dont know what header it used or how your supposed to make it work in your program. another thing i would like to know how to use if anyone knows-- is gotoxy it seems like a farily easy thing but i think im leaving out a header file again.




* Hosted for free by InvisionFree