分页: 1 / 1

conio.h

发表于 : 2011-11-21 21:10
Ryan_Sung
大家好,我是ubuntu菜鸟,在用VIM写代码的时候遇到这样的问题,请大家帮忙解决;
fata error:conio.h:没有那个文件或目录。
请问大家怎么解决这个问题啊?
int main()
{
..........
..........
getch();
return 0;
}

谢谢大家了!

Re: conio.h

发表于 : 2011-11-21 21:58
b33e
conio不是C的标准库
linux没有conio.h这个头文件,没有getch函数。
或者你放弃conio,或者上网找所谓的conio兼容包,或者用getchar,不用getch。

Re: conio.h

发表于 : 2011-11-21 22:02
cuihao
conio.h是DOS的玩意儿,早已被抛弃了吧。