how do you use a delay in c++

Started by
14 comments, last by kingpinzs 20 years, 2 months ago
quote:Original post by iamjoesname
quote:Original post by kingpinzs
I got it from
HERE
http://www.pscode.com/vb/scripts/ShowCode.asp?lngWId=3&txtCodeId=5369
I downloaded the source and I cant get it to run


The author states he''s using Turbo C IDE 3.0. Don''t know much about it personally, but it sounds like those functions are Turbo C specific.



if u would look at all the posts ude see that i ported it and it works well.


Advertisement
quote:Original post by DerAnged

if u would look at all the posts ude see that i ported it and it works well.


Congratulations. I was merely pointing out that perhaps the reason the author''s code won''t compile is because the Delay() and RandNum() functions are compiler specific. At no point did I even suggest that your code did not work well.
quote:Original post by iamjoesname
quote:Original post by DerAnged

if u would look at all the posts ude see that i ported it and it works well.


Congratulations. I was merely pointing out that perhaps the reason the author''s code won''t compile is because the Delay() and RandNum() functions are compiler specific. At no point did I even suggest that your code did not work well.





well you know every code works even DELAY but just not delay

but the the code DerAnged put up works greate.

I have another question how can you make it so that you input words and it will save them to the data file?
quote:Original post by kingpinzs
well you know every code works even DELAY but just not delay

but the the code DerAnged put up works greate.

I have another question how can you make it so that you input words and it will save them to the data file?


look up fstream.


int main(){

double delay=0,x=0;
delay = 500000;
for(x=1;x{
}
return 0;

}

'A library consists of the actual binary code behind the API. You link your game code to the library to make everything work.'

[edited by - joeyzt on February 9, 2004 11:48:38 PM]
'A library consists of the actual binary code behind the API. You link your game code to the library to make everything work.'

This topic is closed to new replies.

Advertisement