C++复制#include <conio.h> #include <bits/stdc++.h> using namespace std; int main(){ char a; while(1){ if(kbhit())a=getch(); cout<<a; } return 0; }