跳到正文

个人记录

kbhit可是个好东西啊(doge)

s_h_i_t约 1 分钟
原文
文章信息与版本

文章信息

发布
2022年6月9日
收录
2025年12月12日
更新
2026年11月17日
篇幅
约 1 分钟

版本

  1. v1当前
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;
}
原文