Ian,
Hi. I dont think dev-c++ has a delay command so I wrote my own, here is the
code:
#include <ctime>
void delay(int seconds)
{
clock_t current, end;
current = clock();
end = current + CLOCKS_PER_SEC * seconds;
while(current < end)
current = clock(); // loop while current not equal end
}
Hope this helps! :)
Chris.
----- Original Message -----
From: "Ian Weston" <lak...@ho...>
To: <Dev...@li...>
Sent: 28 November 2000 08:49
Subject: [Dev-C++] Delay
> hi everyone.
> does anyone know how to use delay. if so please could you send me
the
> c++ source code for it. i would be very greatful.
>
> thanks alot
> laker
>
____________________________________________________________________________
_________
> Get more from the Web. FREE MSN Explorer download :
http://explorer.msn.com
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
>
|