易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux 下getch()和getche()

Linux下getch()和getche()
I would recommend never mixing input techniques in a program. Don't mix fgets() or scanf() with getchar(). Don't mix any standerd C library input function with a non-standard function that bypasses the C stream mechanism, be that getch(), getche(), bioskey(), or anything else. Note that these functions do not read from stdin, they read from a hardware keyboard, which is not the same thing.
 
 
 
Functions like getch() and getche() haven't been incorporated into the C standard because not all host systems provide ways to turn off input buffering. Thus compilers include these as common extensions wherever possible.
 
 
 
 
It is worth pointing out that writing Standart C (or Standart POSIX or whatever) is not always useful or desirable. It is up to the programmer to decide when and whether the benefits of sticking to any particular standards are worth their costs. But in order to make such a decision (and execute it), information *about* those standards is very important.
 
 
 
希望大家能够写出自己的getch() or getche()。
 
 
 
以上是在网站http://bytes.com上的摘录,链接为http://bytes.com/topic/c/answers/476130-getch-getche
 


相关文档:

Linux下安装JDK,及相关环境变量配置

Linux安装JDK步骤1. 先从网上下载jdk(jdk-1_5_0_02-linux-i586.rpm) ,推荐SUN的官方网站www.sun.com,下载后放在/home目录中,当然其它地方也行。
进入安装目录
#cd /home
#cp jdk-1_5_0_02-linux-i586.rpm /usr/local
#cd /usr/local
给所有用户添加可执行的权限
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin
#./jd ......

linux下tomcat安装配置

我把我整合apache+tomcat+mod_webapp.so的过程发上来。其中包括了许多前人的心得与经验  
   
 
1.所需的软件包  
   
    j2sdk-1_4_1_02-linux-i586.bin(jdk1.4.1)  

    Apache2.0.40   (Red   Hat   Linux8.0自带)   ......

linux共享库位置配置


linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项)
2009-11-06
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://skatings.blogbus.com/logs/50437681.html
linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项) ......

一篇不错的介绍linux下usb驱动的文章

转载自 http://www.builder.com.cn/2007/1015/556732.shtml
Linux环境下USB的原理、驱动和配置
开发者在线 Builder.com.cn
更新时间:2007-10-15
作者:北京中科红旗软件技术有限公司 嵌入式工程师 梁国军
来源:CSDN
本文关键词: Linux
USB

作者为北京中科红旗软件技术有限公司 嵌入式工程师 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号