Files
NapCatQQ/.pnpm-store/v3/files/e5/b40720e72c3744e8786b9aca79e9967674665207875f3a17ee8e9ca6d0d401c8ef0cb76d9046e7ed3be1f7c588b4a3736754c8e4ede7e5a0faceff4dd81904
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

21 lines
381 B
Plaintext

#include <conio.h>
#include <ctype.h>
#include <stdio.h>
int main() {
printf("\nPress any keys -- Ctrl-D exits\n\n");
while (true) {
const int ch = getch();
printf("0x%x", ch);
if (isgraph(ch)) {
printf(" '%c'", ch);
}
printf("\n");
if (ch == 0x4) { // Ctrl-D
break;
}
}
return 0;
}