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
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
ÎÒ°ÑÎÒÕûºÏapache£«tomcat£«mod_webapp.soµÄ¹ý³Ì·¢ÉÏÀ´¡£ÆäÖаüÀ¨ÁËÐí¶àÇ°È˵ÄÐĵÃÓë¾Ñé
1.ËùÐèµÄÈí¼þ°ü
¡¡¡¡j2sdk-1_4_1_02-linux-i586.bin(jdk1.4.1)
¡¡¡¡Apache2.0.40 (Red Hat Linux8.0×Ô´ø)   ......
ÓÉÓÚ32λ²Ù×÷ϵͳÏÂÃæµ¥½ø³Ì×î´óÄÚ´æʹÓò»Äܳ¬¹ý2G£¬¶øÎÒÃÇÓÃMemcached¾³£ÐèҪʹÓøü´óµÄÄÚ´æ¿Õ¼ä£¬ËùÒÔÑ¡Ôñ64λµÄLinux°æ±¾ÊDZØÐëµÄ£¬64λOSϵÄMemcached°²×°ºÍ32λOSϲ¶à£¬Ö»ÓÐÒ»¸öµØ·½ÉÔÓв»Í¬£¬Ïê¼ûÏÂÃæµÄºìÉ«×ÖÌ岿·Ö¡£
ÎÒÃÇÒÔ°æ±¾memcached-1.2.6ΪÀý£¬¶ÔÓÚÆäËû°æ±¾Ìæ»»ÏàÓ¦°æ±¾ºÅ¼´¿É£»
ÏÂÔصØÖ·£ºhttp://w ......
ÎÒÕâÀï˵µÄioctlº¯ÊýÊÇÔÚÇý¶¯³ÌʽÀïµÄ£¬ÒòΪÎÒ²»ÖªµÀ¸üÓÐûÓбðµÄ³¡ºÏÓõ½ÁËioctl£¬
ËùÒԾ͹涨ÁËÎÒÃÇÌÖÂ۵ķ¶Î§¡£ÎªÊ²Ã´ÒªÐ´ÆªÎÄÕÂÄØ£¬ÊÇÒòΪÎÒÇ°Ò»Õó×Ó±»ioctl¸ø¸ã»ì
ÁË£¬Õ⼸Ìì²ÅŪÃ÷°×Ëû£¬ÓÚÊÇÔÚÕâÀïÇåÀíÒ»ÏÂÍ·ÄÔ¡£
  ......