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

Linux CÓïÑÔѧϰ±Ê¼Ç

1¡¢int    4×Ö½Ú
   long   8×Ö½Ú
   float  4×Ö½Ú
   double 8×Ö½Ú
   long double 16×Ö½Ú
2¡¢Ò»¸ö×Ö·û±äÁ¿Ö»ÄÜ´æ·ÅÒ»¸ö×Ö·û¡¢Ò»¸ö×Ö½Ú´æ·ÅÒ»¸ö×Ö½Ú
   char c;
   c = 'a';    c = '\034'    c = '\n'
   c = '\x65'    c = 65        c = 0101
   c = 0x41
3¡¢ÔËËã·û²Ù×÷
   -i++µÈ¼ÛÓÚ-(i++)
   i = 2;
   j = -i++;
   ÔËËã½á¹ûi=3 j=-2
4¡¢ÓÅÏȼ¶
  !Âß¼­·Ç > ËãÊõÔËËã·û > ¹ØϵÔËËã·û > &&Âß¼­Óë > ||Âß¼­»ò
  a = 0; b = 1; c = 2; d = a++&&b++&&--c
  µÈ¼ÛÓÚ
  a = 0; b = 1; c = 2; d = (a++) && (b++) && (--c)
  ½á¹ûΪ
  a = 1; b = 1; c = 2; d = 0;
  a = 0; b = 1; c = 2; d = a++||b++||--c;
  µÈ¼ÛÓÚ
  a = 0; b = 1; c = 2; d = (a++) || (b++) || (--c);
  ½á¹ûΪ
  a = 1; b = 2; c = 2; d = 1;
5¡¢¸´ºÏ¸³ÖµÔËËã·û
  a += b  Ï൱ÓÚ a = a + b;
  a *= b + c Ï൱ÓÚ a = a * (b + c);
  a = 2; a += a *= a; µÈ¼ÛÓÚ a += (a *= a); ×îºóa = 8£»
  a = 5; b = 3;
  int max = --a == b++ ? a++ : b++;
  ×îºómax = 4;
6¡¢Ç¿ÖÆÀàÐÍת»»
  int a = 2;
  int b = 5;
  (float)b/aµÈÓÚ2.5
  (float)(b/a)µÈÓÚ2.0
7¡¢×Ö·û´®¿½±´º¯Êý
   char *strcpy(char *dest, const char *src);
   º¯Êý¹¦ÄÜ£º½«×Ö·û´®src¸´ÖƵ½×Ö·ûÊý×édestÖУ¬·µ»Ø¸´ÖƵÄ×Ö·û´®¡£
   src¿ÉÒÔÊÇ×Ö·ûÊý×éÃû¡¢³£Á¿»ò×Ö·ûÖ¸Õë±äÁ¿¡£
   dest¿ÉÒÔÊÇ×Ö·ûÊý×éÃû»ò×Ö·ûÖ¸Õë±äÁ¿¡£ÈôdestÊÇ×Ö·ûÖ¸Õë±äÁ¿£¬Òª×¢Òâ¸ø¸ÃÖ¸Õë±äÁ¿¸³³õÖµ¡£
   º¯Êý˵Ã÷£º
       ×Ö·ûÊý×é1³¤¶ÈÓ¦´óÓÚµÈÓÚ×Ö·û´®»ò×Ö·ûÊý×é2µÄ³¤¶È£»
       ×Ö·ûÊý×é1Ó¦¸Ãд³ÉÊý×éÃûµÄÐÎʽ
   ÀýÈ磺
   static char a[10] = "abcdefghi";
   char b[] = "happy";
 


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

ÔÚѧϰCºóÊÇ·ñ»¹ÒªÑ§Ï°C++£¿

»ªÇåÔ¶¼û 2010-01-22 09:21 ×÷ÕߣºÍõæ©æ©,»ªÇåÔ¶¼ûǶÈëʽѧԺ½²Ê¦¡£
        ÔÚǶÈëʽ¿ª·¢ÖУ¬×÷Ϊµ×²ã¿ª·¢Õߣ¬¸ü¿´ÖصÄÊÇCÓïÑԵıà³ÌÄÜÁ¦£¬µ«×÷ΪӦÓóÌÐòµÄ¿ª·¢Õߣ¬ÎÒÏëѧϰC++»¹ÊÇÓбØÒªµÄ¡£ÄãÖ»ÓÐÔÚÁ˽âÁË£Ã++µÄÌØÐÔ£¬´Ó±¾ÖÊÉÏ¿´µ½ËüÓëCµÄÇø±ð²ÅÄܼᶨÄãÈÏʶѧϰËüµÄ¾öÐÄ¡£ÎÒ²»ÊÇ× ......

WindowsÍê³É¶Ë¿ÚÓëLinux epoll¼¼Êõ¼ò½é

WindowsÍê³É¶Ë¿ÚÓëLinux epoll¼¼Êõ¼ò½é
2009-09-16 09:13
WINDOWSÍê³É¶Ë¿Ú±à³Ì
1¡¢»ù±¾¸ÅÄî
2¡¢WINDOWSÍê³É¶Ë¿ÚµÄÌصã
3¡¢Íê³É¶Ë¿Ú£¨Completion Ports £©Ïà¹ØÊý¾Ý½á¹¹ºÍ´´½¨
4¡¢Íê³É¶Ë¿ÚÏ̵߳Ť×÷Ô­Àí
5¡¢WindowsÍê³É¶Ë¿ÚµÄʵÀý´úÂë
LinuxµÄEPollÄ£ÐÍ
1¡¢ÎªÊ²Ã´selectÂäºó
2¡¢ÄÚºËÖÐÌá¸ßI/OÐÔÄܵÄз½·¨epoll
3 ......

LinuxÐéÄâ»úÎÞ·¨ÁªÍøµÄÖÕ¼«½â¾ö°ì·¨

ÓÐʱÓöµ½ÈçÏÂÎÊÌ⣬Íø¿¨ÉÏÓиö²æ£¬ÈκÎÃüÁÎÞ·¨ÐÞ¸´¡£
·¢ÏÖÍø¿¨ºì²æ֮ǰÊÔ¹ýÏÂÃæÃüÁ¿Ï¶¨¶¼²»Ðеġ£
sudo ifconfig eth0 down
sudo ifconfig eth0 up
sudo /etc/init.d/dhcp3-server restart
sudo /etc/init.d/networking restart
ÎÊÌâ½â¾öºÜ¼òµ¥£¬°ÑÈçϵĸ´Ñ¡¿ò¹´Éϼ´¿É£¬ÐéÄâ»ú¿ª» ......

linux Æô¶¯ ¹ÒÔØrootfs

Ò»Ö±¶ÔlinuxÆô¶¯Ê±¹ÒÔظùÎļþϵͳµÄ¹ý³Ì´æÔÚןܶàÒÉÎÊ£¬½ñÌìÔÚˮľ¾«»ªÇøÕÒµ½ÁËÓÐÓõÄ×ÊÁÏ£¬ÕªÂ¼ÈçÏ£º
1¡£linuxÆô¶¯Ê±£¬¾­¹ýһϵÁгõʼ»¯Ö®ºó£¬ÐèÒªmount ¸ùÎļþϵͳ£¬Îª×îºóÔËÐÐinit½ø³ÌµÈ×ö×¼±¸£¬mount ¸ùÎļþϵͳÓÐÕâô¼¸ÖÖ·½Ê½£º
1£©ÎļþϵͳÒѾ­´æÔÚÓÚÓ²ÅÌ£¨»òÕßÀàËƵÄÉ豸£©µÄij¸ö·ÖÇøÉÏÁË£¬kernel¸ù¾ÝÆô¶¯µÄÃüÁî ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ