+ 2

How delay function work in c++ to move animation and were should i use it

I'm using turbo c++ and I want move a car which I have already drawn but it's not moving even after using dos.h? I want to know how dos.h works.

11th Feb 2019, 5:08 PM
sumit kamble
sumit kamble - avatar
2 Respostas
+ 3
Delay function is used to stop execution of code for some time and then continue with the execution. It uses a header file "dos.h". Syntax: printf("The next line will be printed after 1 sec"); delay(1000); printf("Tadaaaa"); delay function takes a integer parameter as milliseconds to pause execution.
20th Feb 2019, 9:27 AM
Vikas Tiwari
Vikas Tiwari - avatar
0
супер всё понятно. ребят а есть русские ?
26th Feb 2019, 4:46 AM
dimasbro
dimasbro - avatar