So I am trying to program a simple tick-based game. I write in C++ on a linux machine. The code below illustrates what I\'m trying to accomplish.
for (unsign
To reiterate on what has already been stated by others with a concrete example:
Assuming you're using std::cout for output, you should call std::cout.flush(); right before the sleep command. See this MS knowledgebase article.
std::cout
std::cout.flush();