extern "C" ÔĶÁ±Ê¼Ç zz
·¢ÐÅÈË: RoachCock (·´¶¯Ñ§ÊõȨÍþ), ÐÅÇø: CPlusPlus
±ê Ìâ: extern "C" ÔĶÁ±Ê¼Ç
·¢ÐÅÕ¾: ˮľÉçÇø (Fri Mar 7 00:22:47 2008), Õ¾ÄÚ
±¾ÒÔΪºÜ¼òµ¥£¬×ÐϸÔĶÁÁËһϠC++ ±ê×¼£¬·¢ÏÖÄÚÈÝ»¹²»ÉÙ¡£×ܽáÁËһϡ£
Òªµã£º
º¯ÊýÀàÐÍ£¬º¯ÊýÃû£¬±äÁ¿Ãû¾ßÓÐÓïÑÔÁ´½ÓÐÔ£¬language linkage¡£
ÓïÑÔÁ´½ÓÐÔ¿ÉÄÜ»áÓ°Ïìµ½Ãû×ÖÒÔ¼°µ÷ÓÃÔ¼¶¨µÈ£¬ÓÉʵÏÖ¾ö¶¨¡£
C++ ĬÈϵÄÓïÑÔÁ¬½ÓÐÔÊÇ C++ ÓïÑÔÁ´½ÓÐÔ¡£
ÓïÑÔÁ´½ÓÐÔ½ö×÷ÓÃÓÚº¯ÊýÀàÐÍ£¬º¯ÊýÃû£¬±äÁ¿Ãû¡£
²»Í¬ÓïÑÔÁ´½ÓÐԵĺ¯ÊýÀàÐÍÊDz»Í¬µÄÀàÐÍ£¬¼´±ãÆäÓàµÄµØ·½¶¼Ïàͬ¡£
ÓïÑÔÁ´½ÓÐÔÓÃÁ´½ÓÐÔ¹æ¸ñ£¨linkage-specification£©À´ÉùÃ÷£¬·ÖÓÐÎÞ´óÀ¨ºÅÁ½ÖÖÐÎʽ¡£
extern string-literal { declaration-seq opt }
extern string-literal declaration;
ËùÓеÄʵÏÖ¶¼±ØÐëÖ§³Ö "C" ºÍ "C++" Á´½ÓÐÔ¡£
Á´½ÓÐÔ¹æ¸ñÔÊÐíǶÌ×£¬´Ëʱ×îÄÚ²ãµÄÄǸöÆð×÷Ó㬵«ÊDz¢²»½¨Á¢×÷ÓÃÓò¡£
extern "C" { extern "C++" { class A{}; } }
extern "C" { class B:A{};}
ÒòΪ²»ÊÇ×÷ÓÃÓò£¬B ¿ÉÒÔ¿´µ½ A
Èç¹ûCÁ´½ÓÐÔÊ©¼Óµ½C++Àà³ÉÔ±ºÍ³ÉÔ±º¯ÊýµÄÀàÐÍ£¬ºöÂÔCÁ´½ÓÐÔ£¬µ«ÊÇÆäÓàµÄµØ·½ÒÀÈ»ÓÐЧ£¬±ÈÈç³ÉÔ±º¯ÊýµÄ²ÎÊý¡£
±ÈÈ磺
extern "C" { class A{ void f(void (*p)()){} }; }
A ²»ÊǺ¯ÊýºÍ±äÁ¿£¬Ã»ÓÐÓïÑÔÁ´½ÓÐÔ
f ÊÇ C++ ³ÉÔ±º¯Êý£¬ºöÂÔËùÖ¸¶¨µÄ C Á´½ÓÐÔ£¬Èç¹ûÔÚÍâ²ãûָ¶¨±ðµÄ£¬¾ÍÊÇ
C++Á´½ÓÐÔ¡£
p ¾ßÓÐ C Á´½ÓÐÔ¡£
³ýÁËC++Á´½ÓÐԵĺ¯ÊýÍ⣬ͬһ¸öº¯Êý²»´øÁ´½ÓÐÔ¹æ¸ñµÄÉùÃ÷µÄº¯Êý²»ÄÜÔçÓÚ´øµÄ¡£
Èç¹ûÇ°ÃæÉùÃ÷ÁË´øÁ´½ÓÐÔ¹æ¸ñµÄÐÎʽ£¬ºóÃæÓÖ³öÏÖÁ˲»´øµÄÐÎʽ£¬²»ÊÜÓ°Ïì¡£
±ÈÈç extern "C" void foo(); void foo(); ÊÇ¿ÉÒԵģ¬·´¹ýÀ´²»ÐС£
µ«ÊÇ extern void foo(); extern "C++" void foo(); ¿ÉÒÔ¡£
Ìض¨Ãû×ÖµÄ C ÓïÑÔÁ´½ÓÐԵĺ¯Êý×î¶àÖ»ÄÜÓÐÒ»¸ö£¬¼´±ã·ÅÔÚ²»Í¬µÄ namespace À
Ò²ÊÇͬһ¸
Ïà¹ØÎĵµ£º
ÏÈ˵python
pythonµÄrandomÄ£¿éÌṩÁ˶à¸öαËæ»úÊý·¢ÉúÆ÷£¬Ä¬È϶¼ÊÇÓõ±Ç°Ê±¼ä´ÁΪËæ»úÊýÖÖ×Ó¡£
ÏÂÃæÊǸÃÄ£¿é¼¸¸ö×î³£Óõĺ¯Êý
random() Return the next random floating point number in the range [0.0, 1.0).
randint(a,b) Return a random integer N such that a <=
N <= b
randrange([star ......
externÊÇC/C++ÓïÑÔÖбíÃ÷º¯ÊýºÍÈ«¾Ö±äÁ¿×÷Ó÷¶Î§£¨¿É¼ûÐÔ£©µÄ¹Ø¼ü×ÖËü¸æËß±àÒëÆ÷£¬ÆäÉùÃ÷µÄº¯ÊýºÍ±äÁ¿¿ÉÒÔÔÚ±¾Ä£¿é»òÆäËüÄ£¿éÖÐʹÓá£
1¡£¶ÔÓÚextern±äÁ¿À´Ëµ£¬½ö½öÊÇÒ»¸ö±äÁ¿µÄÉùÃ÷£¬Æä²¢²»ÊÇÔÚ¶¨Òå·ÖÅäÄÚ´æ¿Õ¼ä¡£Èç¹û¸Ã±äÁ¿¶¨Òå¶à´Î£¬»áÓÐÁ¬½Ó´íÎó
2¡£Í¨³££¬ÔÚÄ£¿éµÄÍ·ÎļþÖжԱ¾Ä£¿éÌṩ¸øÆäËüÄ£¿éÒýÓõĺ¯ÊýºÍÈ«¾Ö±äÁ ......
ת×Ô£ºhttp://commandos.blog.51cto.com/154976/130652
Ò»¡¢ »·¾³×¼±¸
ÔÚ±¾ÎÄÖУ¬ËùÓгÌÐò¾ùÔÚLinuxÏ¿ª·¢Íê³É£¬¾²âÊÔÄܹ»Õý³£ÔËÐС£
ÔÚ¿ª·¢¹ý³ÌÖУ¬ÎÒÃÇÐèÒªÓõ½gSOAP£¬¿ÉÒÔ´ÓÒÔÏÂÍøÖ·ÏÂÔØ»ñµÃ£º[url]http://www.cs.fsu.edu/~engelen/soap.html[/url]
ÎÒÏÂÔصÄÊÇgsoap_2.7.12.tar.gz
ÏÂÔØÏÂÀ´½âѹËõ£¬°´Õý³£°²×°¹ý ......
C ÓïÑÔµÄÃæÏò¶ÔÏó
ÈçÇ°Ëù˵£¬ÃæÏò¶ÔÏóÊÇÒ»ÖÖÈí¼þÉè¼ÆµÄ˼Ï룬ÊÇÓïÑÔÎ޹صġ£ÔÚ±¾½ÚÖУ¬ÎÒ¾ÙÒ»¸öÁ´±í(list) µÄÀý×ÓÀ´ËµÃ÷ÈçºÎÔÚ C ÓïÑÔÖеÄÉè¼Æ³öÓÐÃæÏò¶ÔÏó·ç¸ñµÄ´úÂë¡£
¶¨Òå½Ó¿Ú
½Ó¿ÚÊÇÃæÏò¶ÔÏóÓïÑÔÖеÄÒ»¸ö±È½ÏÖØÒªµÄ¸ÅÄ½Ó¿ÚÖ»¶ÔÍⲿ³ÐŵʵÏָýӿڵÄʵÌå¿ÉÒÔÍê³ÉʲôÑùµÄ¹¦ÄÜ£¬µ«ÊDz»±©Â¶ÊµÏֵķ½Ê½¡£ÕâÑùµÄºÃ´¦ÊÇ ......
ÎÊÌ⣺ÓÃJ2ME×ö»ùÓÚÊÖ»úµÄC/SģʽÓÎÏ·µÄÁ÷³Ì
²é¿´¸ÃÎÊÌâÍêÕûÄÚÈÝÈç¹û¿ÉÒÔ Çë½éÉÜÏ·þÎñÆ÷ºÍ¿Í»§¶ËµÈ·½±ãµÄÄÚÈݻشð£ºÕâЩÔÚ°Ù¶ÈÉϲ»ºÃÎÊ£¬È¥CSDNÎÊÓÃʲôÓïÑÔ×ö¶¼ÊÇÒ»ÑùµÄ£¬ÄãÓÃJ2ME×ö×ÔÈ»ÊÇ¿ÉÄÜÒªÔÚÊÖ»úÉÏÓ㬿´ÄãҪͨ¹ýÀ¶ÑÀ»¹ÊÇGPRS£¬µ«ÊDZà³ÌÉϱ¾ÖÊÇø±ð²»´ó£¬µ×²ã¶¼ÊÇ͸Ã÷µÄ¡£ÈçºÎ½¨Á¢Á¬½Ó£¬Í¨ÐÅÕâЩӦ¸ÃÃ÷°×°É£¬ ......