写推箱子小游戏的时候需要读取键盘
写了个快速获得代码的小程序
#include<iostream> #include<conio.h> int main() { int a; while(1) { a=getch(); std::cout<<a<<std::endl; } return 0; }