m*e
1 楼
一个很小的程序
#include
#include
#include
void main()
{
int c = getch();
}
编译
g++ -o test -lcurses test.c
没有什么提示错误
运行时候显示:
Segentation fault
到底是为什么啊,getch不是在curses.h库中吗?
神啊,救救我吧
#include
#include
#include
void main()
{
int c = getch();
}
编译
g++ -o test -lcurses test.c
没有什么提示错误
运行时候显示:
Segentation fault
到底是为什么啊,getch不是在curses.h库中吗?
神啊,救救我吧