[c++] How to simulate "Press any key to continue?"