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

C/C++

C/C++ code:

#include <iostream.h>
void main()
{
int a=1,b=2;
cout<<(a++)+b<<'\t'<<a+++b<<endl;
cout<<a<<'\t'<<b<<endl;
}


½á¹û
4  3
3  2
Ôõô·ÖÎö£¿ºóÃæ+++Ôõô½áºÏ°¡£¬ÊÇ+ºÍ++,»¹ÊÇ++ºÍ+ÄØ£¿
++ºÍ+

LZ ÎÞÁÄ

ÕâºÍ±àÒëÆ÷ÓйØ

ÓÖÊÇÕâÖÖÎÊÌâ¡£¡£

¸ù¾Ý×ʶ±ðÔ­Ôò£¬ÊÇ++ºÍ+

ͬÒâÂ¥ÉÏ£º
¸ù¾Ý×ʶ±ðÔ­Ôò£¬ÊÇ++ºÍ+




ÒýÓÃ
¸ù¾Ý×ʶ±ðÔ­Ôò£¬ÊÇ++ºÍ+


¶ÔµÄ¡£

½¨ÒéÂ¥Ö÷¿´Ï ¡¶CÏÝÚåÓëȱÏÝ¡·£¬ÀïÃæ½²µ½Õâ¸öÎÊÌâÁË¡£²¢ÇÒÊDZ¾ºÜºÃµÄÊ飬¿ÉÒÔϵç×Ó°æµÄ¡£

°´ÕÕÌ°ÐÄÔ­Ôò£¬±àÒëÆ÷Ò»¸öÒ»¸ö¶Á×Ö·û²¢ÊÔͼ½âÊÍ¡£a+++b±»½âÊͳÉa++ + b¡£
Èç¹ûÊÇa+++++b£¬ÒòΪ(a++)·µ»ØµÄÊǸöÁÙʱ±äÁ¿£¬²»¿ÉÓÃ×÷×óÖµ£¬ÄÇô((a++)++)+b¾Í²»¶Ô£¬ËùÒÔÖ»ÄÜa++ + ++b¡£
Èç¹ûÊÇa+++++a£¬ÄÇô¾ÍÊÇa++ + ++a£¬µ«ÊǶÔÓÚ+²Ù×÷·û£¬±ê׼δ¹æ¶¨ÏȼÆËã×ó²Ù×÷Êý»¹ÊÇÓÒ²Ù×÷Êý£¬ËùÒÔ¾ßÌå½á¹ûµÃ¿´±àÒëÆ÷ÔõôʵÏÖ£¬ËùÒÔ½á¹û䶨Ò壬ÕâÖÖд·¨Ó¦±ÜÃâ¡£


Ïà¹ØÎÊ´ð£º

eclipse3.5+cdt±àÒëcÓÐÎÊÌâ

±àÒëÆÕͨµÄcûÎÊÌâ°¡£¬µ«±àÒëjavahÉú³ÉµÄ¾Í±¨´í£º
gcc -O0 -g3 -Wall -c -fmessage-length=0 -oHelloWorld.o ..\HelloWorld.c
gcc -otest.exe HelloWorld.o
d:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../. ......

PHPÀ©Õ¹CʱµÄÎÊÌâ

ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ

²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿

ÔËÐÐÁË/ext_skel --extname=Ä ......

¹ØÓÚthe c program µÄÒ»µÀÌâ!

±àд³ÌÐòdetab, ½«ÊäÈëÖеÄÖƱí·ûÌæ»»³ÉÊʵ±ÊýÄ¿µÄ¿Õ¸ñ£¬Ê¹¿Õ¸ñ³äÂúµ½ÏÂÒ»¸öÖƱí·ûÖÕÖ¹µÄµØ·½¡£¼ÙÉèÖƱí·ûÖÕֹλµÄλÖÃÊǹ̶¨µÄ£¬±ÈÈçÿ¸ônÁоͻá³öÏÖÒ»¸öÖƱí·ûÖÕֹλ¡£
£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­ ......

CÎÊÌâ

exit() ºÍreturn ;½áÊøµÄÇø±ðºÍÓÅȱµã
ÎÒ²»Ì«Ã÷°×exit() ËüÊÇÖ±½ÓÍ˳ö³ÌÐòÂð ËüÏÂÃæÒªÊÇ»¹Óк¯Êý»¹ÄÜÖ´ÐÐÂð
Èç
void a()
{
  exit();
}
void b()
{
...
}
bÄÜÖ´ÐÐÂð
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ