perlembed ÔÚ C ³ÌÐòÖÐǶÈë perl
NAME
perlembed - ÔÚ C ³ÌÐòÖÐǶÈë perl
DESCRIPTION
µ¼ÑÔ
ÄãÊÇÏëÒª£º
ÔÚ Perl ÖÐʹÓà C£¿
ÔĶÁ perlxstut¡¢perlxs¡¢h2xs¡¢perlguts ºÍ perlapi¡£
ÔÚ Perl ÖÐʹÓà Unix ³ÌÐò£¿
ÔĶÁ·´ÒýÓ÷û£¨back-quote£©ºÍ L <perlfunc> ÖÐµÄ "system" ÒÔ¼°
"exec"¡£
ÔÚ Perl ÖÐʹÓà Perl£¿
ÔĶÁ "do" in perlfunc¡¢"eval" in perlfunc¡¢"require" in perlfunc
ÒÔ¼° "use" in perlfunc¡£
ÔÚ C ÖÐʹÓà C£¿
ÖØп¼ÂÇÒ»ÏÂÄãµÄÉè¼Æ¡£
ÔÚ C ÖÐʹÓà Perl£¿
Çë¼ÌÐø……
᱐
* ±àÒëÄãµÄ C ³ÌÐò
* ÔÚÄãµÄ C ³ÌÐòÖмÓÈëÒ»¸ö Perl ½âÊÍÆ÷
* ÔÚ C ³ÌÐòÖе÷ÓÃÒ»¸ö Perl º¯Êý
* ÔÚ C ³ÌÐòÖжÔÒ»¸ö Perl Óï¾äÇóÖµ
* ÔÚ C ³ÌÐòÖнøÐÐ Perl ģʽƥÅäºÍÌæ»»
* ÔÚ C ³ÌÐòÖÐÐÞ¸Ä Perl ²ÎÊýÕ»
* ±£³ÖÒ»¸ö³Ö¾ÃµÄ½âÊÍÆ÷
* ±£³Ö¶à¸ö½âÊÍÆ÷ʵÀý
* ÔÚ C ³ÌÐòÖÐʹÓà Perl Ä£¿é£¬Ä£¿é±¾ÉíʹÓà C ¿â
* ÔÚ Win32 ÏÂÄÚǶ Perl
±àÒëÄãµÄ C ³ÌÐò
Äã²»ÊÇΨһһ¸öÔÚ±àÒë±¾ÎĵµµÄÀý×ÓʱÓöµ½À§Äѵġ£Ò»¸öÖØÒª¹æÔòÊÇ£ºÓñàÒëÄãµÄ
Perl Ïàͬ¹æÔòÀ´±àÒë³ÌÐò£¨¶Ô²»Æ𣬶ÔÄã´óÉùº°ÁË£©¡£
ÿ¸öʹÓà Perl µÄ C ³ÌÐò¶¼±ØÐëÁ´½Óµ½ *perl ¿â*¡£*perl ¿â* ÊÇ Ê²Ã´£¿Perl
±¾ÉíÊÇÓà C À´Ð´µÄ£¬perl library ÊÇһϵÁбàÒë¹ýµÄ C ³ÌÐò£¬Õâ
Щ½«ÓÃÓÚ´´½¨ÄãµÄ¿ÉÖ´ÐÐ perl ³ÌÐò£¨*/usr/bin/perl* »òÕߵȼ۵Ķ«Î÷£©¡£
£¨ÍÆÂÛ£º³ý·Ç Perl ÊÇÔÚÄãµÄ»úÆ÷ÉϱàÒëµÄ£¬»òÕߺÏÊÊ°²×°µÄ£¬·ñÔòÄ㽫²»ÄÜÔÚ C
³ÌÐòÖÐʹÓà Perl——ÕâÒ²ÊÇÎ
Ïà¹ØÎĵµ£º
1¡¢C/C++³ÌÐòÔ±Çë×¢Ò⣬²»ÄÜÔÚcaseÓï¾ä²»Îª¿Õʱ“ÏòÏÂÖ´ÐД¡£
2¡¢ÖµÀàÐͺÍÒýÓÃÀàÐÍÖ®¼äµÄÇø±ð£ºC#µÄ»ù±¾ÀàÐÍ£¨int£¬charµÈ£©¶¼ÊÇÖµÀàÐÍ£¬ÊÇÔÚÕ»Öд´½¨µÄ¡£¶ø¶ÔÏóÊÇÒýÓÃÀàÐÍ£¬´´½¨ÓÚ¶ÑÖУ¬ÐèҪʹÓùؼü×Önew¡£
3¡¢ÔÚC#ÖÐͨ¹ýʵÀý·ÃÎʾ²Ì¬·½·¨»ò³ÉÔ±±äÁ¿ÊDz»ºÏ·¨µÄ£¬»áÉú³É±àÒëÆ÷´íÎó¡£µ«ÊÇÎÒÃÇ¿ÉÒÔͨ¹ýÉùÃ÷ËûÃÇ ......
×Ö·û´®×ª»»Æª
atof
atoi
atol
gcvt
strtod
strtol
strtoul
toascii
tolower
toupper
atof£¨½«×Ö·û´®×ª»»³É¸¡µãÐÍÊý£©
Ïà¹Øº¯Êý
atoi£¬atol£¬strtod£¬strtol£¬strtoul
±íÍ·Îļþ
#include <stdlib.h>
¶¨Ò庯Êý
double atof(const char *nptr);
º¯Êý˵Ã÷
atof()»áɨÃè²ÎÊýnptr×Ö·û´®£¬Ìø¹ýÇ°Ãæµ ......
1¡¢´íÎó(err_return)µÄºê¶¨Òå
#define err_return(num,fmt,args) \
do
{
printf("[%s:%d]"fmt"\n",__FILE__,__LINE__,##args);return(num);
} while(0)
-1 ÊÇreturnµÄ·µ»ØÖµ£¬±íʾÓдíÎó£»
fmt Ê ......
1.Documents and SettingsÊÇʲôÎļþ£¿
´ð°¸£º
ÊÇϵͳÓû§ÉèÖÃÎļþ¼Ð£¬°üÀ¨¸÷¸öÓû§µÄÎĵµ¡¢ÊղؼС¢ÉÏÍøä¯ÀÀÐÅÏ¢¡¢ÅäÖÃÎļþµÈ¡£
²¹£ºÕâÀïÃæµÄ¶«Î÷²»ÒªËæ±ãɾ³ý£¬Õâ±£´æ×ÅËùÓÐÓû§µÄÎĵµºÍÕË»§ÉèÖã¬Èç¹ûɾ³ý¾Í»áÖØÐÂÆô¶¯²»ÄܵǽµÄÇé¿ö£¬ÓÈÆäÊÇÀïÃæµÄdefault user¡¢all users¡¢administratorºÍÒÔÄ㵱ǰµÇ½Óû§ÃûµÄÎļþ ......
http://www.ibm.com/developerworks/cn/aix/library/au-toughgame/index.html
Ó¢ÎÄÔÎÄ
ÒýÑÔ
¶ÔÓÚÈκÎʹÓà C ÓïÑÔµÄÈË£¬Èç¹ûÎÊËûÃÇ C ÓïÑÔµÄ×î´ó·³ÄÕÊÇʲô£¬ÆäÖÐÐí¶àÈË¿ÉÄÜ»á»Ø´ð˵ÊÇÖ¸ÕëºÍÄÚ´æй©
¡£ÕâЩµÄÈ·ÊÇÏûºÄÁË¿ª·¢ÈËÔ±´ó¶àÊýµ÷ÊÔʱ¼äµÄÊÂÏî¡£Ö¸ÕëºÍÄÚ´æ驶ÔijЩ¿ª·¢ÈËÔ±À´ËµËƺõÁîÈËη¾å£¬µ«ÊÇÒ»µ©ÄúÁ˽ ......