Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ......

CÓïÑÔʹÓÃÕýÔò±í´ïʽ£¨2£©

GNU/LinuxÓÐÁ½Ì׿â¿ÉÓÃÓÚÕýÔò±í´ïʽ±à³Ì£ºPOSIX¿âºÍPCRE¿â¡£Ç°Õß²»ÐèÒªµ¥¶À°²×°£¬Ò»°ãÐèÇó»¹ÊÇÄÜÂú×ãµÄ£¬ËÙ¶ÈÉÔÂýЩ¡£ºóÕßÊǾøºÊ¢ÃûµÄPerlÕýÔò±í´ïʽ¿â£¬¹¦ÄÜÇ¿´ó£¬Æ¥ÅäËٶȿ죬²»¹ý¿ÉÄÜÐèÒªµ¥¶À°²×°¡£
ÎÒÃÇÏÈÓÃÒ»¸öÀý×ÓÀ´½éÉÜÈçºÎʹÓÃPOSIX¿â¡£
££i nclude <stdio.h>
££i nclude <sys/ty ......

C#ÓëC++¡¢JAVAµÄÇø±ð


#(¶Á×ö "C sharp")ÊÇ΢Èí¹«Ë¾ÔÚÈ¥ÄêÁùÔ·¢²¼µÄÒ»ÖÖеıà³ÌÓïÑÔ,²¢¶¨ÓÚÔÚ΢ÈíÖ°Òµ¿ª·¢ÕßÂÛ̳(PDC)ÉϵÇ̨ÁÁÏà.C#ÊÇ΢Èí¹«Ë¾Ñо¿Ô±Anders HejlsbergµÄ×îгɹû.C#¿´ÆðÀ´ÓëJavaÓÐמªÈ˵ÄÏàËÆ;Ëü°üÀ¨ÁËÖîÈçµ¥Ò»¼Ì³Ð,½çÃæ,ÓëJava¼¸ºõͬÑùµÄÓï·¨,ºÍ±àÒë³ÉÖмä´úÂëÔÙÔËÐеĹý³Ì.µ«ÊÇC#ÓëJavaÓÐ×ÅÃ÷ÏԵIJ»Í¬,Ëü½è¼øÁËDelphiµÄÒ»¸ ......

Xen Demo C

   ¶ÔÓÚxenµÄÐéÄ⻯¹ÜÀí£¬´ó¼Ò¶¼ÔÚÓÃʲôÄØ£¿ÎÒÕæµÄÏëÖªµÀÊDz»ÊÇ´ó¼Ò¶¼ÓÃxmÀ´½øÐйÜÀíÄØ£¿ÖÁÉÙÎÒÏë´ó¶àÊý½ö½öÏëÁ˽âһϵÄÅóÓÑ¿ÉÄÜÓÃÏÂxmÒ²¾ÍËãÊÇÁ˽âÁË¡£¶øÇÒÔÚxenµÄÓû§ÊÖ²áÀïÃæÒ²½ö½ö½éÉÜÁËÒ»ÏÂxmµÄʹÓ÷½·¨£¬¹ØÓÚÔõôʹÓÃËüµÄc½Ó¿ÚÀ´¹ÜÀíÐéÄ⻯·½ÃæµÄ½éÉÜÖ»×ÖδÌá¡£
   ÎÒ²»½ö½öÏëÓÃxmÕâ¸ö¹¤¾ßÀ´´ ......

»ñÈ¡IPµÄC ´úÂë

»ñÈ¡IPµÄC ´úÂë #include<stdio.h> #include<winsock2.h> #pragma comment(lib,"ws2_32.lib") void CheckIP(void) //¶¨ÒåCheckIP£¨£©º¯Êý£¬ÓÃÓÚ»ñÈ¡±¾»úIPµØÖ· { WSADATA wsaData; char name[255]; //¶¨ÒåÓà ...
»ñÈ¡IPµÄC ´úÂë
#include<stdio.h>
#include<winsock2.h>
#pragma comment(li ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ