C语言头文件问题,用不了conio.h头文件

我不论用CodeBlocks 16.01 还是DEV C++6,0 ,虽然在include文件夹里面有 conio.h文件,但是在编程中并不能使用,就比如我用了#include<conio.h> 但clyscr(); 或者gotoxy();
等提示was not declared in this scope 是原因呢?

linux 下没有conio.h,若要使用getch等函数,需要安装使用curses库。 例如: #include <stdio.h> #include <curses.h> int main(void) { char ch; printf("Input a character:"); ch = getch(); printf("\nYou input a '%c'\n", ch); return 0; } 编译时加上-lcurses参数
温馨提示:答案为网友推荐,仅供参考
相似回答