Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÖÐÈçºÎ²éÕÒº¯ÊýµÄʵÏÖ

±È·½Ëµº¯Êý tcsetospeedº¯Êý£¬Ê¹ÓÃQt Createor¿ÉÒÔÌø×ªµ½ËûµÄÍ·Îļþ termios.h¡£µ«ÓÐʱºòÏë¿´Ò»ÏÂÕâ¸öº¯ÊýÊÇÈçºÎʵÏֵģ¬Õâʱºò¸ÃÈçºÎ²éÕҸú¯ÊýµÄ¶ÔÓ¦µÄʵÏÖÎļþÄØ£¿
ÎÒûÓà Qt Creator
Äã¿ÉÒÔ¿´¿´Qt CreatorµÄ°ïÖú£¬ÓÐûÓÐÕâ¸ö¹¦ÄÜ¡£


Èç¹û°´ÕÕϰ¹ß£¬ÎÒ»áÈ¥ÕÒtermios.cppÎļþ£¬
¿´¿´ÄǸöº¯ÊýµÄʵÏÖ

Í·ÎļþÊÇtermios.h
ÄǺ¯ÊýµÄʵÏÖÓ¦¸Ã¾ÍÊÇÂ¥ÉÏ˵µÄtermios.cppÖ®ÀàµÄÁË

Ó¦¸ÃÄÜÕÒµ½

±È·½Ëµº¯Êý tcsetospeedº¯Êý£¬Ê¹ÓÃQt Createor¿ÉÒÔÌø×ªµ½ËûµÄÍ·Îļþ termios.h¡£µ«ÓÐʱºòÏë¿´Ò»ÏÂÕâ¸öº¯ÊýÊÇÈçºÎʵÏֵģ¬Õâʱºò¸ÃÈçºÎ²éÕҸú¯ÊýµÄ¶ÔÓ¦µÄʵÏÖÎļþÄØ£¿
£­£­£­£­£­£­£­£­£­£­£­£­£­£­
ϸö¶Ïµã£¬¾ÍÄÜÌø½øÈ¥ÁË

¼´Ê¹ÕÒ²»µ½¶ÔÓ¦µÄtermios.cppÎļþ¡£ÓõÄÊÇUbuntu£¬ÓÃ×ÀÃæµÄËÑË÷¹¦ÄÜ£¬»òÕßÊÇshellÖеÄfindÃüÁ¶¼ÎÞ·¨ÕÒµ½¡£
ÊDz»ÊÇĬÈÏÇé¿öÏ£¬ubuntuûÓа²×°ÕâЩcppÎļþ¡£

¿ÉÄÜÒªÏÂÔØÄÚºËÔ´Âë....

Èç¹ûÊÇQt Createor
¹â±êÒÆ¶¯µ½·½·¨ÉϵãÓÒ¼ü
Ñ¡×îºóµÄÁ½Ïî

¿ì½Ý¼üf2 ¡¢shift+f2
ÄÜ×îºó¸úµ½ÊµÏÖ´úÂë

ÎҵľÍÊÇubuntu ÉÏʵÑéÁËÏ£¬¿ÉÒÔ¿´µ½Ô´´úÂë

ÎÒÊÇUbuntu8.04,´ò¿ª/usr/srcĿ¼£¬Àï±ßÓÐlinux-headers-2.6.24-26ºÍlinux-headers-2.6.24-26-genericÁ½¸öĿ¼£¬¿´Ãû×ÖÓ¦¸ÃÊÇÍ·Îļþ£¬Ò»¸ö35Õ×£¬Ò»¸ö5.6Õס£ÏÂÔØÁËÒ»Ì×linuxµÄºËÐÄ´úÂ룬½âѹºó´ó¸ÅÓÐ700Õס£ÊDz»ÊÇubuntuĬÈϰ²×°Ö»´øÁ˺ËÐĵÄÍ·Îļþ£¬ÒòΪ¿ÉÒÔ´ÓQt CreatorÌø×ªµ½Í·ÎļþÖС£

ʹÓÃsudo apt-get install kernel-sourceÃüÁî°²×°£¬Ò²ÎÞ·¨ÏÂÔØµ½cppÎļþ¡£

T_T ΪɶҪÊÇcppÎļþÄØ£¿

Ö´ÐÐÃüÁ sudo apt-get install linux-source£¬ºÃÏñ¿ªÊ¼ÏÂÔØÔ´ÂëÁË¡£

lz£¬Äãµ


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

linuxÏÂCÓïÑÔ¿ª·¢oracleµÄÎÊÌâ¡£

Á½¸öÎļþ1.PC£¬1.inc
1.PCÓвÙ×÷oracleÊý¾Ý¿âµÄ ,1.incÒ²ÓвÙ×÷oracleÊý¾Ý¿â 
ÔÚÆäËûÊý¾ÝÖÐÈçinformix ÖÐ$include 1.inc¾Í¿ÉÒÔʹÓÃÁË
ÔÚORACLEÊý¾Ý¿âÖØ $include 1.inc²»¿ÉÓà EXEC SQL include 1.incÒ²²»¿É ......

¹ØÓÚlinuxÏÂsocket±à³ÌµÄÎÊÌ⣡ - C/C++ / CÓïÑÔ

ÓÉÓÚÎҲŸոսӴ¥socket±à³Ì£¬×Ô¼ºÐ´ÁËÒ»¸ö¼òµ¥³ÌÐò£¬µ«¾ÍÊÇÔÚÔËÐеÄʱºò³öÏֶδíÎó£¬ÎÞ·¨½â¾ö£¬ÏÖÔÚÎÒ°ÑÔ´´úÂëÌù³öÀ´£¬Çë¸÷λ´óϺָÕýһϣ¡Ð»Ð»£¡
#include<stdio.h>
#include<stdlib.h>
#include& ......

linux ÏÂusbÉ豸Çý¶¯ÎÊÌâ

linux ÏÂusbÉ豸£¬ÔÚrootȨÏÞÏ£¬É豸¿ÉÒÔÕý³£ÕÒµ½Çý¶¯£¬
µ«ÔÚÆÕͨÓû§ÏÂÕÒ²»µ½É豸Çý¶¯£¬²»ÖªµÀÊÇʲôԭÒò£¿Çë¸ßÊÖÖ¸½Ì
Ó¦¸ÃÊÇrootΪÁË·ÀÖ¹ÆÕͨÓû§ÆÆ»µ°É£¬ËùÒÔ¼Ó¸öȨÏÞ¡£¡£¡£ÎҵľÍÊÇ

ȨÏÞÎÊÌâ rootÊdz¬¼¶Óà ......

linux ÏÂusbÉ豸Çý¶¯ÎÊÌ⣿

linux ÏÂusbÉ豸£¬ÔÚrootȨÏÞÏ£¬É豸¿ÉÒÔÕý³£ÕÒµ½Çý¶¯£¬ 
µ«ÔÚÆÕͨÓû§ÏÂÕÒ²»µ½É豸Çý¶¯£¬
ÔõÑù²Å¿ÉÒÔÔÚÆÕͨÓû§ÏÂʹÓÃusbÉ豸£¿
Çë¸ßÊÖÖ¸½Ì
°ï¶¥Ï¡¢

ûÓöµ½¹ý£¬ÎÒÓõÄfedoraÆÕͨÓû§Ä¬ÈϵÄÒ²ÄÜÓðɣ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ