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

ÓÃphpµÄcÀ©Õ¹±à³Ìµ÷Óà c³ÌÐòµÄ¶¯Ì¬Á´½Ó¿â


Ò».    Ê×ÏÈ×öÒ»¸ö¼òµ¥µÄsoÎļþ£º
    /**
     * hello.c
     * To compile, use following commands:
     *   gcc -O -c -fPIC -o hello.o hello.c
     *   gcc -shared -o libhello.so hello.o
     */
    int hello_add(int a, int b)
    {
        return a + b;
    }
    È»ºó½«Ëü±àÒë³É.soÎļþ²¢·Åµ½ÏµÍ³ÖУº
    $ gcc -O -c -fPIC -o hello.o hello.c
    $ gcc -shared -o libhello.so hello.o
    $ su
    # echo /usr/local/lib > /etc/ld.so.conf.d/local.conf
    # cp libhello.so /usr/local/lib
    # /sbin/ldconfig
¶þ.    д¶ÎС³ÌÐòÀ´ÑéÖ¤ÆäÕýÈ·ÐÔ£º
    /**
     * hellotest.c
     * To compile, use following commands:
     *   gcc -o hellotest -lhello hellotest.c
     */
    #include <stdio.h>
    int main()
    {
        int a = 3, b = 4;
        printf("%d + %d = %d\n", a, b, hello_add(a,b));
        return 0;
    }
    ±àÒë²¢Ö´ÐУº
    $ gcc -o hellotest -lhello hellotest.c
    $ ./hellotest
    3 + 4 = 7
Èý.
    È»ºóͨ¹ýÏÂÃæµÄÃüÁÁ¢Ò»¸öÃûΪ hello µÄÄ£¿é¡£
    $ ./ext_skel --extname=hello
    Ö´ÐиÃÃüÁîÖ®ºóËü»áÌáʾÄãÓ¦µ±ÓÃʲôÃüÁîÀ´±àÒëÄ£¿é£¬¿ÉϧÄÇÊǽ«Ä£¿é¼¯³Éµ½phpÄÚ²¿µÄ±àÒë·½·¨¡£Èç¹ûÒª±àÒë³É¿É¶¯Ì¬¼ÓÔØµÄ php_hello.so£¬·½·¨Òª¸üΪ¼òµ¥¡£
    $ cd hello
    Ê×Ïȱ༭ config.m4 Îļþ£¬È¥µôµÚ16Ðк͵Ú18ÐÐ


Ïà¹ØÎĵµ£º

ÓÃCдµÄ3DÃÔ¹¬

          Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
       ´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸еģ¬»î»î»î£¡
         &n ......

[ת]C/C++×ÊÔ´´ó»ã×Ü(ºÜºÃºÜÇ¿´ó)

1.¿ª·¢¹¤¾ßÏÂÔØ
TUBER C                     http://www.duote.com/soft/392.html
Turbo C 2.0 ºº»¯°æ             http://www.programfan.com/showdown.asp?id=306
C-Free 4.0             http:/ ......

ÈçºÎÀí½âC run time library £¨CÔËÐÐʱ¿â£©

1)ÔËÐÐʱ¿â¾ÍÊÇ C run-time library£¬ÊÇ C ¶ø·Ç C++ ÓïÑÔÊÀ½çµÄ¸ÅÄî:È¡Õâ¸öÃû×Ö¾ÍÊÇÒòΪÄãµÄ C ³ÌÐòÔËÐÐʱÐèÒªÕâЩ¿âÖеĺ¯Êý.
2)C
ÓïÑÔÊÇËùνµÄ“СÄں˔ÓïÑÔ£¬¾ÍÆäÓïÑÔ±¾ÉíÀ´ËµºÜС£¨²»¶àµÄ¹Ø¼ü×Ö£¬³ÌÐòÁ÷³Ì¿ØÖÆ£¬Êý¾ÝÀàÐ͵ȣ©£»ËùÒÔ£¬C ÓïÑÔÄں˿ª·¢³öÀ´Ö®ºó£¬Dennis
Ritchie ºÍ Brian Kernighan ¾ÍÓà C ± ......

PHPÑ­»·Óï¾ä

Ñ­»·Óï¾äÊÇ ÎªÁ˽â¾ö±à³ÌÖÐ "ÐèÒªÖظ´Ò»¶ÎÖ¸ÁîÖ±µ½Âú×ãÌض¨Ìõ¼þΪֹ" µÄÒ»ÖÖÑ­»·»úÖÆ
1¡¢while
     whileÓï¾äÖ¸¶¨ÁËÒ»¸öÌõ¼þ£¬ÔÚÆäǶÈë´úÂë½áÊøÖ´ÐÐÇ°£¬±ØÐëÂú×ãÕâ¸öÌõ¼þ¡£
     Óï·¨£º
     while(expression){
      & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ