Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ......

C ±à³Ì×î¼Ñʵ¼ù


¼ò½é
±¾ÎÄÊÇΪÁËÂú×㿪·¢ÈËÔ±µÄÐèÒª¶øдµÄ¡£ÎÒÃÇ×ܽáÁËÒ»Ì×Ö¸ÄÏ£¬ÎÞÂÛ×÷Ϊ¿ª·¢ÈËÔ±»¹ÊǹËÎÊ£¬ÕâЩָÄ϶àÄêÀ´Ò»Ö±¶¼ºÜºÃµØÖ¸µ¼×ÅÎÒÃÇ£¬ÎÒÃÇ°ÑËüÃÇ×÷Ϊ½¨ÒéÌṩ¸øÄú£¬Ï£Íû¶ÔÄúµÄ¹¤×÷ÓÐËù°ïÖú¡£ÄúÒ²Ðí²»ÔÞͬÆäÖеÄijЩָÄÏ£¬µ«ÎÒÃÇÏ£ÍûÄú»áϲ»¶ÆäÖеÄһЩ²¢ÔÚÄúµÄ±à³Ì»òÒÆÖ²ÏîÄ¿ÖÐʹÓÃËüÃÇ¡£
·ç¸ñÓëÖ¸ÄÏ
ʹÓÃÒ»ÖÖʹ´úÂë¾ß ......

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×ÔÉí±àÒëϵͳµÄºÜ¶à´¦Àí£¬Òò´ËÒªÕæÕýÀ ......

the c programming language Ï°Ìâ µÚ¶þÕÂ

exercise2.4
void squeeze(char s[],char t[])
{
int i,j,k;
int lens,lent;
lens=strlen(s);
lent=strlen(t);
for(i=0,k=0;i<lens;i++)
{
for(j=0;j<lent;j++)
if(s[i]==t[j])
break;
if(j==lent)
s[k++]=s[i];
}
s[k]='\0';

exercise2.5
int any(char s[],char t[ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ