0
is there a "wait" function?
is there a way to make the program wait a certain amount of time between 2 cout outputs?
4 ответов
+ 1
No, it wouldn't. Google can help you with a wait function for your Android, but when it comes around to you programming on a PC, the method I shown should work.
0
stackoverflow.com knows it all: http://stackoverflow.com/questions/158585/how-do-you-add-a-timed-delay-to-a-c-program
0
#include <windows.h>
Sleep(1000);
The parameter that Sleep() takes is the time you want to wait in milliseconds, where 1000ms = 1s.
Obviously will likely only function on systems running Windows OS, hence the header.
0
by windows os, I assume you mean it will not work on this app, which I'm running on my android?