int a = 40;
A a += £¨a++£©;
B (++a) += (a++);
A ºÍ B ½á¹û·Ö±ðÊÇʲô£¿
A£º81
B£ºÓ¦¸ÃÊdzö´í°É£¿£¿£¿µÈ´ý¸ßÈ˽â´ð
²»Í¬±àÒëÆ÷
²»Í¬µÄ½á¹û
ÎҵĽá¹ûÊÇ£º81 83
A a=81
B a=83
a±äÁ¿±»¸³ÖµÃ»ÎÊÌâ¡£¡£
AÊÇa=80
BÊÇa=81°É¡£¡£¡£
¿ÉÊÇ++aºóaÓ¦¸Ã±äΪ³£Á¿ÁË°É---B
Õâ¸öÊÇÃæÊÔÌâÂð
ÕâÖÖд·¨²»ÊDZ¶ÊÜÈËÃÇÇ´ÔðÂð
A£º81
B£º83
A a=81
B a=83
µ«ÊÇÕâÖÖд·¨ÔÚʵ¼ùÖÐÒ»°ãÊDz»±»²ÉÓõġ£
B ΪɶµÈÓÚ 83 ÄØ (++a) a = 41 (a++) a = 41 È»ºóÏà¼Ó²»ÊÇ82Âð£¿
(++a) += (a++);
²î²»¶àÓ¦¸ÃÊÇ£º
++a;
a+=a;
a++;
µÚ¶þ²½µÄʱºò£¬a±ä³É41ÁË£¬Ö´ÐÐÍêÖ®ºó¾ÍÊÇ82£¬×îºóÒ»²½ÔÙÖ´ÐÐ×îºóÒ»¸ö++¡£¡£¡£
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
ÔÚ¸ùĿ¼/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Öж¨ÒåµÄ·½·¨ ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
ÈçºÎ½«Ò»¸öListBoxÖеÄÊý¾Ý´æÔÚÊý¾Ý¿âÖеÄÒ»¸ö×Ö¶ÎÏÂÃ棬²¢ÇÒÿÌõ¼Ç¼µÄ×Ö·û´®¸öÊý²»Ò»¶¨ ÒÔ¼°ÈçºÎ´ÓÊý¾Ý¿âÖжÁÈ¡¸ÃListBoxÖеÄËùÓмǼ
C/C++ code:
//´æÈëÊý¾Ý¿â
void __fastcall TForm1::Button5Click(TO ......