#include <stdio.h> #include <conio.h> main() { int i,j; char ch; while(ch=getch()!='\r') { i++; printf("%c",ch); } printf("you type %d characters\n",i); }
getch()方法定义在哪呢?