Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¿ª·¢µÄÄǵãʶù(ÉÏ£©


×÷ÕߣºÎ¤¶«É½,
»ªÇåÔ¶¼ûǶÈëʽѧԺ
½²Ê¦¡£
Ëæ×ÅǶ
ÈëʽÐÐÒµÓ²¼þƽ̨µÄÐÔÄÜÔöÇ¿£¬ÏîÄ¿ÐèÇóºÍ¹¦ÄÜÈÕÒæ¸´ÔÓ£¬ARM¹«Ë¾ÍƳöµÄ
CORTEX-M3£¬¸üÊÇÈÃÒÔÍù×öµ¥Æ¬»úµÄ¹¤³ÌʦÔÚоƬºÍ¼¼ÊõÑ¡ÐÍÃæÁÙÁ½ÄÑÑ¡Ôñ£¬±¾×¨Ì⽫´ÓоƬ¼Û¸ñ¡¢Õû¸öϵͳµÄÓ²¼þÈí¼þÉè¼Æ¼°Î¬»¤µÄ³É±¾µÈ¸÷¸ö·½Ãæ¸øÄú
Ìṩһ¸ö²Î¿¼£¬ ²¢´Ó¼¼Êõ½Ç¶È·ÖÎöµ¥Æ¬»úºÍ´ø²Ù ......

LinuxÏÂÓýű¾Ð´¼à¿Ø´úÀí³ÌÐò

LinuxÏÂÓýű¾Ð´¼à¿Ø´úÀí³ÌÐò
Îâ旻
Ì©ÑÒÍøÂ繤×÷ÊÒ
 
         Òò¹¤×÷ÐèÒª£¬ÎÒÐèÒª¼à¿Ø¼¸Ì¨·þÎñÆ÷µÄ³ÌÐò״̬£¬SNMP(¼òµ¥ÍøÂç¹ÜÀíЭÒé)¿ÉÒÔÓ㬵«²¢²»ÄÜÂú×ãÎÒµÄÒªÇ󣬶øÇÒ²¢²»¼òµ¥¡£ÎÒÏ£ÍûʵʱµÃµ½ÖîÈç½ø³ÌµÄÐÅÏ¢¡¢CPUʹÓá¢ÄÚ´æÊ¹Óá¢ÍøÂçÁ÷Á¿¡¢ÍøÂç¶Ë¿Ú¡¢´ÅÅÌÐÅÏ ......

Linux from Scratch

1. Download all packet and patchs    Done
2. To be involved in the mail list
3. Check Host Requirements                    Done
»¹Ñ§Ï°ÁË cut ÏÔʾijÐеÄÖ¸¶¨field £¬head ÏÔʾǰ¼¸ÐУ¬readlin ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ