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

CλÔËËã

12.1       λÔËËã·û£ÃÓïÑÔÌṩÁËÁùÖÖλÔËËã·û£º
    &          °´Î»Óë
    |          °´Î»»ò
    ^          °´Î»Òì»ò
    ~          È¡·´
    <<         ×óÒÆ
    >>         ÓÒÒÆ
12.1.1            °´Î»ÓëÔËËã
    °´Î»ÓëÔËËã·û"&"ÊÇË«Ä¿ÔËËã·û¡£Æ书ÄÜÊDzÎÓëÔËËãµÄÁ½Êý¸÷¶ÔÓ¦µÄ¶þ½øλÏàÓë¡£Ö»ÓжÔÓ¦µÄÁ½¸ö¶þ½øλ¾ùΪ1ʱ£¬½á¹ûλ²ÅΪ1£¬·ñÔòΪ0¡£²ÎÓëÔËËãµÄÊýÒÔ²¹Â뷽ʽ³öÏÖ¡£
ÀýÈ磺9&5¿ÉдËãʽÈçÏ£º
      00001001        (9µÄ¶þ½øÖƲ¹Âë)
     &00000101        (5µÄ¶þ½øÖƲ¹Âë)
      00000001        (1µÄ¶þ½øÖƲ¹Âë)
¿É¼û9&5=1¡£
°´Î»ÓëÔËËãͨ³£ÓÃÀ´¶ÔijЩλÇå0»ò±£ÁôijЩλ¡£ÀýÈç°Ña µÄ¸ß°ËλÇå 0 £¬±£ÁôµÍ°Ë룬¿É×÷a&255ÔËËã( 255 µÄ¶þ½øÖÆÊýΪ0000000011111111)¡£
¡¾Àý12.1¡¿
main(){
    inta=9,b=5,c;
    c=a&b;
   printf("a=%d\nb=%d\nc=%d\n",a,b,c);
}
12.1.2            °´Î»»òÔËËã
°´Î»»òÔËËã·û“|”ÊÇË«Ä¿ÔËËã·û¡£Æ书ÄÜÊDzÎÓëÔËËãµÄÁ½Êý¸÷¶ÔÓ¦µÄ¶þ½øλÏà»ò¡£Ö»Òª¶ÔÓ¦µÄ¶þ¸ö¶þ½øλÓÐÒ»¸öΪ1ʱ£¬½á¹ûλ¾ÍΪ1¡£²ÎÓëÔËËãµÄÁ½¸öÊý¾ùÒÔ²¹Âë³öÏÖ¡£
ÀýÈ磺9|5¿ÉдËãʽÈçÏ£º
    00001001
   |00000101
    00001101        (Ê®½øÖÆΪ13)¿É¼û9|5=13
¡¾Àý12.2¡¿
main(){
    inta=9,b=5,c;
    c=a|b;
   printf("a=%d\nb=%d\nc=%d\n",a,b,c);


Ïà¹ØÎĵµ£º

ѧÉú¹ÜÀíϵͳ(c/cpp)

#include
using namespace std;
typedef struct lnode
{
    long sno;
    char name[20];
    struct lnode *next;
}LNode, *LinkList;
LinkList InitList()
{
    LinkList head;
    head = new LNode;
 &nb ......

B/S½á¹¹¼ò½é¼°ÓëC/S½á¹¹µÄÇø±ð


Ò»¡¢Ê²Ã´ÊÇc/sºÍb/s
ÒªÏë¶Ô“c/s”ºÍ“b/s”¼¼Êõ·¢Õ¹±ä»¯ÓÐËùÁ˽⣬Ê×ÏȱØÐë¸ãÇå³þÈý¸öÎÊÌâ¡£
µÚÒ»¡¢Ê²Ã´ÊÇc/s½á¹¹¡£
c/s£¨client/server£©½á¹¹£¬¼´´ó¼ÒÊìÖªµÄ¿Í»§»úºÍ·þÎñÆ÷½á¹¹¡£ËüÊÇÈí¼þϵͳÌåϵ½á¹¹£¬Í¨¹ýËü¿ÉÒÔ³ä·ÖÀûÓÃÁ½¶ËÓ²¼þ»·¾³µÄÓÅÊÆ£¬½«ÈÎÎñºÏÀí·ÖÅäµ½client¶ËºÍserver¶ËÀ´ÊµÏÖ£¬½µµÍÁ ......

¹ØÓÚCµÄ0x8±¾¡°¾­Ê顱£ÛǶÈëʽ±Ø¶Á£Ý

ÔÚµ±½ñǶÈëʽ“ÎäÁÖ”ÖУ¬Á÷´«×ż¸±¾ÈËÈ˶¼Ïë͵ѧ¼¸ÕеÄCÓïÑÔµÄÎ书Ãؼ®¡£ÕâЩÃؼ®¶¼ÊÇ¿õÊÀÎäѧÆæ²ÅºÄ¾¡±ÏÉú¾«Á¦ËùÖø£¬²¿·ÖÃؼ®Á÷¾­ÊýÊ®ÔØÈÔ¾­¾Ã²»Ë¥£¬ÈÃËüµÄÎÞÊýʵϰÕßÊÜÒæ·Ëdz¡£¡¡¡¡½ñÌ죬³ÐÃÉÎäÁÖ´ó»áËùÍÏ£¬ÔÚÕ⹫²¼Õ⼸±¾¹ØÓÚCµÄ“¾­Ê锣¬Èøü¶àÈËʵϰ֮£¬Á·¾ÍÒ»Éí¾øÊÀµÄǶÈëʽCÓïÑԺù¦·ò¡£Î书à ......

linux c/c++ GDB½Ì³ÌÏê½â

GDB
ÊÇ
GNU
¿ªÔ´×éÖ¯·¢²¼µÄÒ»¸öÇ¿´óµÄ
UNIX
ϵijÌÐòµ÷ÊÔ¹¤¾ß¡£»òÐí£¬¸÷λ±È½Ïϲ»¶ÄÇÖÖͼÐνçÃ淽ʽµÄ£¬Ïñ
VC
¡¢
BCB
µÈ
IDE
µÄµ÷ÊÔ£¬µ«Èç¹ûÄãÊÇÔÚ
UNIX
ƽ̨ÏÂ×öÈí¼þ£¬Äã»á·¢ÏÖ
GDB
Õâ¸öµ÷ÊÔ¹¤¾ßÓбÈ
VC
¡¢
BCB
µÄͼÐλ¯µ÷ÊÔÆ÷¸üÇ¿´óµÄ¹¦ÄÜ¡£Ëùν

´çÓÐËù³¤£¬³ßÓÐËù¶Ì

¾ÍÊÇÕâ¸öµÀÀí ......

cÎļþ²Ù×÷: (1)ÎļþµÄ»ù±¾¸ÅÄî

¡¡¡¡Ëùν“Îļþ”ÊÇÖ¸Ò»×éÏà¹ØÊý¾ÝµÄÓÐÐò¼¯ºÏ¡£ Õâ¸öÊý¾Ý¼¯ÓÐÒ»¸öÃû³Æ£¬½Ð×öÎļþÃû¡£ ʵ¼ÊÉÏÔÚÇ°ÃæµÄ¸÷ÕÂÖÐÎÒÃÇÒѾ­¶à´ÎʹÓÃÁËÎļþ£¬ÀýÈçÔ´³ÌÐòÎļþ¡¢Ä¿±êÎļþ¡¢¿ÉÖ´ÐÐÎļþ¡¢¿âÎļþ (Í·Îļþ)µÈ¡£Îļþͨ³£ÊÇפÁôÔÚÍⲿ½éÖÊ(Èç´ÅÅ̵È)Éϵģ¬ ÔÚʹÓÃʱ²Åµ÷ÈëÄÚ´æÖÐÀ´¡£´Ó²»Í¬µÄ½Ç¶È¿É¶ÔÎļþ×÷²»Í¬µÄ·ÖÀà¡£´ÓÓû ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ