int _getch( void );Get a character from the console without echo (_getch)int getchar( void );Read a character from stdin.LZ是不是把这两个函数弄混淆了, c=getch()改成 c=_getch();或c=getchar()就可以了.