I want my app to show:
press any key to exit ...
And to exit when I press any key.
How can I achieve this?
Note: I have googled but all of what I've found needed to press Enter at the end. I want something like Console.ReadKey()
in C#.
I am running MS Windows.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…