Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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/C++ HOOK API£¨Ô­ÀíÉîÈëÆÊÎöÖ® LoadLibraryA£©

9Ô¶¼¿ì½áÊøÁË£¬Ö®Ç°Ò»Ö±Ã¦µ½Ð´×Ô¼ºµÄ¶«Î÷¼ÓÉÏÉÏ°à¡£»ù±¾Ã»ÓÐʱ¼äÑо¿Ï»ã±àºÍC C++·½ÃæµÄ¸ÐÐËȤµÄ¶«Î÷¡£ÔÙÔõô˵Â9Ô»¹ÊǵÃдһƪÈö£¬ÒÔºóÿÔÂÖÁÉÙһƪ°É¡£¸ø×Ô¼º¶¨ÁË£¬Ï£Íû´ó¼Ò¼à¶½¡£ºÙºÙ£¡
ÕâƪÎÄÕ¾ÍÀ´Ì¸Ì¸Æ½³£ºÜ³£¼ûµÄHOOK¼¼Êõ£¬ÕâÀïÄØ¡£Ð´µÃ±È½Ï¼òµ¥£¬·½·¨ºÜ¶à¡£Ö»½²Ô­Àí£¡Ï£Íû´óÄñÃDZðÍÂÎÒ¿ÚË®¹þ - -¡£ºÃ£¡ÇÐÈëÕ ......

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


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

Symbian C/S »úÖÆ·ÖÎö| symbian os

http://www.devdiv.net/blog/space-14481-do-blog-id-458.html

ÒÔÏ·ÖÎö»ùÓÚ£º
Developer Platform :S60 3rd Edition, Feature Pack 2 SDK
Operating System :Symbian OS v9.3
Ò»£¬ÎªÊ²Ã´ÒªÊ¹ÓÃClient/Server¼Ü¹¹
ÔÚSymibian OSÖÐËùÓеÄÒì²½·þÎñ¶¼ÊÇServerͨ¹ýC/S¼Ü¹¹À´ÊµÏֵġ£ClientÊÇÀûÓÃServerÌṩµÄÌض¨· ......

android ±àÒëNative CµÄhello,worldÄ£¿é

±àÒëNative CµÄhello,worldÄ£¿é
    Android ±àÒë»·¾³±¾Éí±È½Ï¸´ÔÓ£¬ÇÒ²»ÏñÆÕͨµÄ±àÒë»·¾³£ºÖ»Óж¥²ãĿ¼Ï²ÅÓÐMakefileÎļþ£¬¶øÆäËûµÄÿ¸öcomponent¶¼Ê¹ÓÃͳһ±ê×¼µÄ Android.mk. Android.mkÎļþ±¾ÉíÊDZȽϼòµ¥µÄ£¬²»¹ýËü²¢²»ÊÇÎÒÃÇÊìϤµÄMakefile£¬¶øÊǾ­¹ýÁËAndroid×ÔÉí±àÒëϵͳµÄºÜ¶à´¦Àí£¬Òò´ËÒªÕæÕýÀ ......

dm642 cÔËÐпâµÄmalloc·ÖÎö

cÔËÐпâmalloc·ÖÅäµÄÄÚ´æÔÚÄÄÀïÄØ£¬Ê×ÏÈÉÏ´úÂ룺
//ÄÚ´æ´óСÁ¬½ÓÆ÷½«ÆäµØÖ·Ö¸Ïò-heapÑ¡Ïî
extern _DATA_ACCESS int _SYSMEM_SIZE;
//ÄÚ´æÇøÓò
#pragma DATA_SECTION(_sys_memory, ".sysmem")
far PACKET _sys_memory[1] = { ((size_t)&_SYSMEM_SIZE) - sizeof(PACKET), 0 };
    
   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ