linux下getch问题
#include <stdio.h>#include <stdlib.h>
#include <curses.h>
int main()
{
char c=getch();
system("cls");
printf("%c",c);
return 0;
}
为什么编译不通过呢?在linux下getch()怎么用的?
2011-05-01 19:20
2011-05-01 19:33
2011-05-01 22:13
2011-05-02 12:50
2011-05-02 12:51
2011-05-02 15:46
2011-05-02 16:48
2011-05-02 17:20

2011-05-03 11:23
2011-05-03 13:10