kbhit可是个好东西啊(doge) s_h_i_t · 2022-06-09 16:49:00 · 个人记录 #include <conio.h> #include <bits/stdc++.h> using namespace std; int main(){ char a; while(1){ if(kbhit())a=getch(); cout<<a; } return 0; }