I am trying to write a game which need to control the action.
It is obviously bad to press enter key each time.
Because game needs infinit loop, so the waiting me press enter key each loop would stop the loop.
I need a way to check if there is input, a way to sidestep the cin buffer, which requires me strike enter key, a way to shut down the input and reopen the input.
would anyone be kind to show me the way.
Thanks so much!