引用 | 编辑
teldeanmac85
2009-10-06 23:36 |
1楼
▲ |
使用getch()函式
需引入conio.h 复制程式 #include<stdio.h> #include<conio.h> int main(int argc, char* argv[]) { int c = getch(); if( c == 8 ) { printf("BackSpace"); } system("pause"); return 0; } x1 |