在C++中使用conio.h 实现实时键盘输入读取 (即不须要回车)

在须要用的地方 调用函数  char singleKey = getche(); </pre><pre name="code" class="cpp"> #include <termios.h> #include <unistd.h> #include <stdio.h> /* reads from keypress, doesn't echo */ int getch(void) {
相关文章
相关标签/搜索