C++ Input Timer [duplicate]

2019-03-03 18:25发布

This question already has an answer here:

So, I am making a game, and I need input function to have deadline, and I want that time to be displayed in one of the console corners. I have timer running on separate thread, but I do not know how to interupt input function when it finishes. Also, as I mentioned I want to show user how much time he has left, lets say to write varibale TimeLeft on end of the first line,but keep all other lines intact. Any help would be appriciated. Working in C++, Windows platform, console app

0条回答
登录 后发表回答