asylu3
25-03-2004, 09:45 PM
#include < time.h >
#include < iostream.h >
void sleep( clock_t wait )
{
clock_t goal;
goal = wait + clock();
while( goal > clock() );
}
void main()
{
sleep(5000);
cout<<"hello";
}
Note: this code implemented in vc++ 6.0
#include < iostream.h >
void sleep( clock_t wait )
{
clock_t goal;
goal = wait + clock();
while( goal > clock() );
}
void main()
{
sleep(5000);
cout<<"hello";
}
Note: this code implemented in vc++ 6.0