While Steven was reading other messages, Jack Everett wrote:
JE> Hello,
Hey Jack... I'm here again! :)
JE> I am NEW to turbo C to tell the tuth I am new to programing period.
JE> I am teaching myself how to do this but i do have a question I hope
JE> that someone can help me with...
Oh... I was new to turbo C this summer... so I am out of this NEW period
now... I have been programming for about two years before this... but
it still seemed new to me. I can probably teach simple stuff... :)
JE> How do you put a slight pause in a program..what i am trying to do is
JE> put a small delay between to print statements ie
JE> puts("You have Just been Stung\n");
JE> puts("And your face is now swollen\n");
That isn't difficult... :)
Okay... there is a function called delay() and it is under dos.h :)
This is how you would type in...
// Using a delay function
#include
#include
main()
{
cout << "You have Just been Stung" << endl;
// next line delays the line after that for so many milliseconds.
delay (400);
cout << "And your face is now swolen" << endl;
}
This should compile and gives a delay of just under half a second.
JE> I would like a pause or small delay between those to print
JE> statements..
That would do exactly just that.
JE> I would apreciate any help
No problem... if any other questions, just ask.
Steven Lei
From: Las Vegas, Nevada, USA
E-mail = SpewMuffin@Juno.Com
... Tap! Tap! Is this tagline thingie working?
___ Blue Wave/DOS v2.30 [NR]
--- PCBoard (R) v15.21/M 2
---------------
* Origin: The Board running PCBoard 15.21 (702) 221-0083 (1:209/222)
|