打印

getche()函数在linux的那个头文件力呀?

getche()函数在linux的那个头文件力呀?

getche()函数在linux的那个头文件力呀?
真爱生命,远离博客 http://fedora.yo2.cn/

TOP

#include<stdio.h>
    #include<conio.h>
     main()
     {
          char c, ch;
          c=getch();     /*从键盘上读入一个字符不回显送给字符变量c*/
          putchar(c);    /*输出该字符*/
          ch=getche();   /*从键盘上带回显的读入一个字符送给字符变量ch*/
          putchar(ch);
     }
萧一飞 支持精品国产软件

TOP

不对呀,conio.h不能找到!!!!!

TOP

#whereis conio.h

找不到conio.h

conio.h是VC6中的头文件
真爱生命,远离博客 http://fedora.yo2.cn/

TOP

man getche看看。

TOP