C/C++ style
#include <stdio.h>
int main()
{
char *str[] = {"welcome", "to", "fortemedia", "nanjing"};
char **p = str + 1;
str[0] = ( *p++ ) + 2;
str[1] = * ( p + 1 );
str[2] = p[1] + 3;
str[3] = p[0] + ( str[2] - str[1] );
printf ( "%s\n", str[0] );
printf ( "%s\n", str[1] );
printf ( "%s\n", str[2] );
printf ( "%s\n", str[3] );
return 0;
}//ÕâÖÖ·ç¸ñÊÇansi
#include <stdio.h>
int main() {
char *str[] = {"welcome", "to", "fortemedia", "nanjing"};
char **p = str + 1;
str[0] = ( *p++ ) + 2;
str[1] = * ( p + 1 );
str[2] = p[1] + 3;
str[3] = p[0] + ( str[2] - str[1] );
printf ( "%s\n", str[0] );
printf ( "%s\n", str[1] );
printf ( "%s\n", str[2] );
printf ( "%s\n", str[3] );
return 0;
}//ÕâÖÖ·ç¸ñ½ÐK&R
#include <stdio.h>
int main()
{
char *str[] = {"welcome", "to", "fortemedia", "nanjing"};
char **p = str + 1;
str[0] = ( *p++ ) + 2;
str[1] = * ( p + 1 );
str[2] = p[1] + 3;
str[3] = p[0] + ( str[2] - str[1] );
printf ( "%s\n", str[0] );
printf ( "%s\n", str[1] );
printf ( "%s\n", str[2] );
printf ( "%s\n", str[3] );
return 0;
}//ÕâÖÖ·ç¸ñ½Ðgnu
#include <stdio.h>
int main()
{
char *str[] = {"welcome", "to", "fortemedia", "nanjing"};
char **p = str + 1;
str[0] = ( *p++ ) + 2;
str[1] = * ( p + 1 );
str[2] = p[1] + 3;
str[3] = p[0] + ( str[2] - str[1] );
printf ( "%s\n", str[0] );
printf ( "%s\n", str[1] );
printf ( "%s\n", str[2] );
printf ( "%s\n", str[3] );
return 0;
}//ÕâÖÖ·ç¸ñ½Ðlinux
//²Î¼ûastyle , Ñ¡ÄÇÖÖ·ç¸ñ£¬¶¼Ò»Ñù£¬ºÍÄãÏîÄ¿×é±£³ÖÒ»Ö¾ÍÐС£
Ïà¹ØÎĵµ£º
²ÉÓÃc/s ¿Í»§¶ËºÍ·þÎñ¶Ëģʽ½øÐÐÎļþºÍÃüÁîÊý¾ÝµÄ´«Ê䣬ÒÔ¼°Êý¾ÝµÄ½»»»¡£c/s ºÍb/s p2pµÈ¶àÖÖ¼¼ÊõÏë½áºÏ¡£
Ò»£¬cs ÍøÂçµÄʵÏÖ
²ÉÓô«Í³µÄ¿Í»§¶ËºÍ·þÎñ¶Ëģʽ£¬ÓÃtcp/ip ÐÒé½øÐÐÊý¾ÝµÄ½»»¥ºÍ´«µÝ¡£
¶þ£¬csÍøÂ翪·¢
Ä£·ÂÖøÃûµÄ»Ò¸ë×ÓÈí¼þ£¬»Ò¸ë×ӵĵ½À´£¬¸øÍøÂçÊÀ½ç£¬´øÀ´ÁËеĻîÁ¦£¬¸øÈËÃÇ´øÀ´ÐµÄÌåÑ飬
ºÍ¹ÛÄ ......
C³ÌÐòÊÇÓÉÒ»×é»òÊDZäÁ¿»òÊǺ¯ÊýµÄÍⲿ¶ÔÏó×é³ÉµÄ¡£ º¯ÊýÊÇÒ»¸ö×ÔÎÒ°üº¬µÄÍê³ÉÒ»¶¨Ïà¹Ø¹¦ÄܵÄÖ´ÐдúÂë¶Î¡£ÏÂÃæС±àºÍ´ó¼Ò·ÖÏíÏÂCÓïÑÔÖеĺ¯Êý¡£
1. setfillpatterneº¯Êý
setfillpatterneº¯ÊýµÄ¹¦ÄÜÊÇÑ¡ÔñÓû§¶¨ÒåµÄÌî³äģʽ£¬ÆäÓ÷¨Îª£ºvoid far setfillpattern(char far *upattern, int ......
Ðí¶à±à³ÌÓïÑÔÖеĵ÷Óú¯ÊýµÄÁ½ÖÖ·½·¨ÊÇ°´Öµµ÷ÓÃ(call-by-value)ºÍ°´ÒýÓõ÷ÓÃ(call-by-reference)¡£
²ÎÊý°´Öµµ÷Óô«µÝʱ£¬Éú³É²ÎÊýÖµ¸±±¾²¢ÇÒ´«¸ø±»µ÷Óú¯Êý£¬¸±±¾µÄ¸Ä±ä²¢²»Ó°Ïìµ÷ÓÃÕßµÄÔʼ±äÁ¿Öµ£¬ÕâÑù¾Í¿ÉÒÔ·ÀÖ¹ÒâÍâµÄ¸±×÷ÓÃÓ°Ï쿪·¢ÕýÈ·£¬¿É¿¿µÄϵͳ¡£°´Öµµ÷ÓõÄÒ»¸öȱµãÊÇ£¬Èç¹û´«µÝ½Ï´óµÄÊý¾ÝÏÔò¸´ÖÆÕâ¸öÊý ......
º¯ÊýÃû: abort
¹¦ ÄÜ: Òì³£ÖÕÖ¹Ò»¸ö½ø³Ì
ÓÃ ·¨: void abort(void);
³ÌÐòÀý:
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf("Calling abort()\n");
abort();
return 0; /* This is never reached */
}
......