getche()
上一篇 /
下一篇 2008-01-03 15:28:46
/ 个人分类:学习.net 使用编程100例
getche() : Gets a character from the console with echo.
The_getchand_getwchfunctions read a single character from the console with echo, meaning that the character is displayed at the console. None of these functions can be used to read CTRL+C. When reading a function key or an arrow key, each function must be called twice; the first call returns 0 or 0xE0, and the second call returns the actual key code.
These functions lock the calling thread and are therefore thread-safe. For non-locking versions, see_getche_nolock, _getwche_nolock.
收藏
举报
TAG: