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

CÖ¸Õ루2£©

CÓïÑÔ±ØÖª±Ø»á£¨2£©
4.º¯ÊýºÍÖ¸Õë
4.1. Ö¸Ïòº¯ÊýµÄÖ¸Õë
     Ö¸Ïòº¯ÊýµÄÖ¸Õ뼴ͨ³£ËµµÄº¯ÊýÖ¸Õ룬ÕýÊÇÓÉÓÚÕâЩ¼ò³Æ£¬ËùÒÔËüºÍ·µ»ØÖ¸ÕëµÄº¯Êý£¨Ö¸Õ뺯Êý£©ÈÝÒ×»ìÏý£¬¶øÇÒÒ²ÓÉÓÚд·¨ÉϱȽÏÏà½ü£¬¾ÍÏñÊý×éÖ¸Õë(int (*p)[4])ºÍÖ¸ÕëÊý×é(int *p[4])Ò»Ñù£¬Ç°Õß±íʾָÕë±äÁ¿pÖ¸ÏòÒ»¸öһάÊý×飬Õâ¸öÊý×麬ÓÐ4¸öintÐͱäÁ¿£¬ËùÒÔp++ºó£¬P¾ÍÖ¸ÏòÏÂÒ»¸öһάÊý×飻¶øºóÕß±íʾpÊÇÒ»¸öÊý×飬º¬ÓÐ4¸öÖ¸ÏòintÐÍÊýµÄÖ¸Õë·Ö±ðΪp[0],p[1],p[2],p[3]¡£
int max(int x,int y){
}
int (*ps)()=swap;    //¶¨ÒåÁËÒ»¸öº¯ÊýÖ¸ÕëÖ¸Ïòswapº¯Êý
int (*ps)(int x,int y);    //Ò²¶¨ÒåÁËÒ»¸öº¯ÊýÖ¸Õë¡£
µ÷ÓÃʱ£ºmax=max(a,b);»òmax=(*ps)(a,b);
4.2.  ·µ»ØÖ¸ÕëµÄº¯Êý
char *getString(char strings[][10],int n){
    return strings[i]    //¼ÙÉè·µ»Ø××Ö·û´®
}
µ÷ÓÃʱ£ºchar *p=getString(strings,4);
printf("%s\n",p);
4.3.  mainº¯Êý
    mainº¯ÊýÊÇCÓïÑÔÖÐ×îÖØÒªµÄÒ»¸öº¯Êý£¬µ«ÊÇͨ³£ÔÚ±àд³ÌÐòµÄʱºòºÜÉÙÓõ½Ê¹ÓòÎÊýµÄmain(int argc,char *args[])º¯Êý£¬ÏÂÃæÊÇÒ»¸öÀý×Ó
int main(int argc,char *args[]){
    //char *args[]ÐβÎÊÇÒ»¸öÖ¸ÕëÊý×飬ÿ¸öÔªËØ¶¼ÊÇÒ»¸öcharÐÍÖ¸Õ룬ËùÒÔ¿ÉÒÔÖ¸ÏòÒ»¸öÊý×é
    while(argc-->1){
        printf("%s\n",*(++args));
    }
}
5.½á¹¹Ìå
    ¼òµ¥µÄ½á¹¹ÌåºÜ¼òµ¥£¬Òª×¢ÒâÇø·ÖµÄÊÇÖ¸Ïò½á¹¹ÌåµÄÖ¸Õ룬Èçstruct PEOPLE *p=people1;ÕâÀï¼ÙÉèPEOPLEÊǶ¨ÒåµÄÒ»¸ö½á¹¹ÌåÀàÐÍ£¬people1ÊÇPEOPLEÀàÐ͵ĽṹÌå±äÁ¿¡£
ʹÓÃÖ¸Õëµ÷ÓýṹʱÓÐÁ½ÖÖ·½·¨£º1)(*p).name»ò2)p->name¡£
    ʹÓýṹÌåÀ´±àÐ´ÃæÏò¶ÔÏóµÄ´úÂë¡£
Àý×Ó£º
#include<stdio.h>
#include<stdlib.h>
typedef struct node{
    int x;
    int y;
    void (*print)();
}NODE;
void print();
NODE *initNODE(){
    NODE *node=(NODE*)malloc(sizeof(NODE));
    node->print=print;
    return node;
}
NODE *node=NULL;
int main(){
    node=initNODE(


Ïà¹ØÎĵµ£º

ÓÃC#£¨C++£©Socketºǫ́±àд×Ô¼ºµÄIIS·þÎñÆ÷´úÌæIIS

 ±¾ÎÄ´¥¼°µ½Socket TCP/IP±à³Ì·½ÃæµÄ֪ʶ£¬ÆäʵÕâÊǺܼòµ¥µÄÄÚÈÝ£¬´ó¼Ò¿´²»Ã÷µÄµØ·½´ó¿ÉÒÔÏÈÍù϶Á£¬ÒÔºóÔÙ¿´Ò»±é£¬¿ÉÄÜ»á¾õµÃºÜ¼òµ¥¡£
ºÜ¶àÈËÐ´ÍøÕ¾ÓùßÁËIISºÍTomcatÕâЩ¸ß¼¶µÄºǫ́À´×öÍøÕ¾ºǫ́·þÎñ£¬È»¶ø£¬ÔÚÕâЩºǫ́»¹Ã»ÓÐÎÊÊÀ֮ǰ£¬ÈËÃÇÊÇÔõô±àÐ´ÍøÕ¾µÄÄØ£¿ËûÃǵײ㹲ͬ×ñÊØµÄ×¼ÔòºÍ±ê×¼ÓÖÊÇÊ²Ã´ÄØ£¿
Õâ¾ÍÊÇht ......

vim script ·ÖÏí£¨Ð´c/c ³ÌÐò´úÂ룩


×Ô¼ºÊ¹ÓÃvim±à¼­´úÂëÒ²ÊÇÓÐÒ»¶Îʱ¼äÀ´£¬Ä¿Ç°ÔĶÁ¡¢Ð޸ġ¢Ð´´úÂë»ù±¾¶¼Àë²»¿ªËûÁË¡£±¾ÈËʹÓùýµÄ±à¼­Æ÷ºÜÉÙ£¬ÒÔǰһ°ã¶¼ÊÇʹÓóÌÐò¿ª·¢IDE×Ô´øµÄ±à¼­Æ÷Щ´úÂ룬û¾õµÃʲô·½±ã¡£¿ªÊ¼Ê¹ÓÃvimµÄ¸Õ¸Õ½Ó´¥linux³ÌÐò¿ª·¢µÄʱºò£¬ÄÇʱ¿´µ½ÆäËûÈËÒ»°ã¶¼ÊÇÔÚwindowsÏÂʹÓÃSource Insight ±à¼­´úÂ룬ȻºóÔÚÐéÄâ»úlinuxÏÂmake¡£ÎұȽ ......

ubuntuϽâ¾ö C compiler cannot create executables

       ½ñÌ죬ÔÚUbuntuÉϰ²×°PythonÓöµ½ÁËÎÊÌ⣺ C compiler cannot create executables¡£ÕâÓ¦¸ÃÊDZàÒë»·¾³³öÏÖÁËÎÊÌâ¡£ÔÚÍøÉÏËÑË÷ÁËһϣ¬½â¾ö·½·¨ÈçÏ£º
       sudo apt-get install build-essential¼´¿É¡£
......

cÏÝÚåÓëȱÏÝѧϰ±Ê¼Ç

http://c.chinaitlab.com/c/basic/200907/789321.html
  ´Ê·¨ÏÝÚ壺
    1        = ²»Í¬ÓÚ£½£½²»ÒªÔÚ³ÌÐòÖн«Á½Õßд´í£¬Ð¡ÐÄ¡£½«±í´ïʽÓë³£Á¿±È½Ïʱ£¬¿É½«³£Á¿·ÅÔÚ×ó±ß¡£
    2        &ºÍ| ²»Í¬ÓÚ& ......

Pro*C Á¬½ÓÊý¾Ý¿âʱdbname µÄÉèÖÃ

    ×î½üÒ»¶Îʱ¼äÔÚÑо¿ Pro*C Óöµ½Á˺ܶà³õ¼¶ÎÊÌâ¡£ÔÚ Pro*C ÖÐÁ¬½ÓÊý¾Ý¿âʱ£¬ÎÒÃÇÒ»°ãÊÇʹÓÃÔÚ“tnsnames.ora”ÖÐÅäÖúÃÁ¬½Ó£¬Ð´ÆðÀ´ºÜ¼òµ¥£¬Óï·¨ÈçÏ£º
    EXEC SQL CONNECT :username IDENTIFIED BY :password USING :dbname;
    /* ÕâÀïµÄ dbname ¾ÍÊÇÔÚ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ