+ 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.
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.
0
супер всё понятно. ребят а есть русские ?