Tim*_*thy 5 c++ console keystroke
可能重复:
C ++控制台键盘事件
我希望Windows控制台程序在按下某个键时执行某些操作,例如
while(1)
{
....
if(the key 'o' is pressed down)
....
}
Run Code Online (Sandbox Code Playgroud)
但我不知道该说些什么if。如何检查键“ o”是否按下?
我正在使用Windows 7 64位和Visual Studio Professional 2008。
| 归档时间: |
|
| 查看次数: |
14032 次 |
| 最近记录: |