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

C ÃæÊÔÌâÓÐÐËȤ½øÀ´¿´¿´ - C/C++ / ÐÂÊÖÀÖÔ°

int a = 40;

A a += £¨a++£©;
B (++a) += (a++);

A ºÍ B ½á¹û·Ö±ðÊÇʲô£¿
A£º81
B£ºÓ¦¸ÃÊdzö´í°É£¿£¿£¿µÈ´ý¸ßÈ˽â´ð

²»Í¬±àÒëÆ÷

²»Í¬µÄ½á¹û


ÎҵĽá¹ûÊÇ£º81 83


A a=81  
B a=83

ÒýÓÃ

A£º81
B£ºÓ¦¸ÃÊdzö´í°É£¿£¿£¿µÈ´ý¸ßÈ˽â´ð


a±äÁ¿±»¸³ÖµÃ»ÎÊÌâ¡£¡£

AÊÇa=80
BÊÇa=81°É¡£¡£¡£

¿ÉÊÇ++aºóaÓ¦¸Ã±äΪ³£Á¿ÁË°É---B

Õâ¸öÊÇÃæÊÔÌâÂð
ÕâÖÖд·¨²»ÊDZ¶ÊÜÈËÃÇÇ´ÔðÂð

A£º81
B£º83

A a=81  
B a=83

µ«ÊÇÕâÖÖд·¨ÔÚʵ¼ùÖÐÒ»°ãÊDz»±»²ÉÓõġ£


ÒýÓÃ
A a=81
B a=83


B ΪɶµÈÓÚ 83 ÄØ (++a) a = 41 (a++) a = 41 È»ºóÏà¼Ó²»ÊÇ82Âð£¿

ÒýÓÃ
ÒýÓà 9 Â¥ gavinkeith µÄ»Ø¸´:
A a=81
B a=83


B ΪɶµÈÓÚ 83 ÄØ (++a) a = 41 (a++) a = 41 È»ºóÏà¼Ó²»ÊÇ82Âð£¿


(++a) += (a++);

²î²»¶àÓ¦¸ÃÊÇ£º
++a;
a+=a;
a++;

µÚ¶þ²½µÄʱºò£¬a±ä³É41ÁË£¬Ö´ÐÐÍêÖ®ºó¾ÍÊÇ82£¬×îºóÒ»²½ÔÙÖ´ÐÐ×îºóÒ»¸ö++¡£¡£¡£

ÒýÓÃ
ÒýÓà 11 Â¥ zhucezhengoulei µÄ»Ø¸´:
ÒýÓà 9 Â¥ gavinkeith µÄ»Ø¸´:
A a=81
B a=83


B ΪɶµÈÓÚ 83 ÄØ (++a) a = 41 (a++) a = 41 È»ºóÏà¼Ó²»ÊÇ82Âð£¿


(++a) += (a++);

²î²»¶àÓ¦¸ÃÊÇ£º
++a;
a+=a;
a++;


Ïà¹ØÎÊ´ð£º

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

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

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

C/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý - C/C++ / C++ ÓïÑÔ

´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......

c¾²Ì¬±àÒëÁíÒ»¸öÎļþ¼ÐµÄ¿âº¯Êý - C/C++ / CÓïÑÔ

ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......

Ϊʲôxml²»ÄÜÏÔʾ°¢À­²®ÎÄ - C/C++ / C++ ÓïÑÔ

ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À­²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À­²®ÎĵÄ×Ö¿âÄãÓÐô£¿

ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......

ÓйØAccessÊý¾Ý¿â´æÈ¡µÄÎÊÌâ - C++ Builder / »ù´¡Àà

ÈçºÎ½«Ò»¸öListBoxÖеÄÊý¾Ý´æÔÚÊý¾Ý¿âÖеÄÒ»¸ö×Ö¶ÎÏÂÃ棬²¢ÇÒÿÌõ¼Ç¼µÄ×Ö·û´®¸öÊý²»Ò»¶¨ ÒÔ¼°ÈçºÎ´ÓÊý¾Ý¿âÖжÁÈ¡¸ÃListBoxÖеÄËùÓмǼ
C/C++ code:

//´æÈëÊý¾Ý¿â
void __fastcall TForm1::Button5Click(TO ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ