在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) {
相關文章
相關標籤/搜索