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

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 ¿Í»§¶ËºÍ·þÎñ¶Ëģʽ½øÐÐÎļþºÍÃüÁîÊý¾ÝµÄ´«Ê䣬ÒÔ¼°Êý¾ÝµÄ½»»»¡£c/s ºÍb/s p2pµÈ¶àÖÖ¼¼ÊõÏë½áºÏ¡£
Ò»£¬cs ÍøÂçµÄʵÏÖ
²ÉÓô«Í³µÄ¿Í»§¶ËºÍ·þÎñ¶Ëģʽ£¬ÓÃtcp/ip ЭÒé½øÐÐÊý¾ÝµÄ½»»¥ºÍ´«µÝ¡£
¶þ£¬csÍøÂ翪·¢
Ä£·ÂÖøÃûµÄ»Ò¸ë×ÓÈí¼þ£¬»Ò¸ë×ӵĵ½À´£¬¸øÍøÂçÊÀ½ç£¬´øÀ´ÁËеĻîÁ¦£¬¸øÈËÃÇ´øÀ´ÐµÄÌåÑ飬
ºÍ¹ÛÄ ......

C/C++——С±à̸CÓïÑÔº¯ÊýÄÇЩÊÂ(21)

C³ÌÐòÊÇÓÉÒ»×é»òÊDZäÁ¿»òÊǺ¯ÊýµÄÍⲿ¶ÔÏó×é³ÉµÄ¡£ º¯ÊýÊÇÒ»¸ö×ÔÎÒ°üº¬µÄÍê³ÉÒ»¶¨Ïà¹Ø¹¦ÄܵÄÖ´ÐдúÂë¶Î¡£ÏÂÃæС±àºÍ´ó¼Ò·ÖÏíÏÂCÓïÑÔÖеĺ¯Êý¡£
 
1.     setfillpatterneº¯Êý
setfillpatterneº¯ÊýµÄ¹¦ÄÜÊÇÑ¡ÔñÓû§¶¨ÒåµÄÌî³äģʽ£¬ÆäÓ÷¨Îª£ºvoid far setfillpattern(char far *upattern, int ......

C/C++Öеİ´Öµµ÷ÓÃÓë°´ÒýÓõ÷ÓÃ

 Ðí¶à±à³ÌÓïÑÔÖеĵ÷Óú¯ÊýµÄÁ½ÖÖ·½·¨ÊÇ°´Öµµ÷ÓÃ(call-by-value)ºÍ°´ÒýÓõ÷ÓÃ(call-by-reference)¡£
²ÎÊý°´Öµµ÷Óô«µÝʱ£¬Éú³É²ÎÊýÖµ¸±±¾²¢ÇÒ´«¸ø±»µ÷Óú¯Êý£¬¸±±¾µÄ¸Ä±ä²¢²»Ó°Ïìµ÷ÓÃÕßµÄԭʼ±äÁ¿Öµ£¬ÕâÑù¾Í¿ÉÒÔ·ÀÖ¹ÒâÍâµÄ¸±×÷ÓÃÓ°Ï쿪·¢ÕýÈ·£¬¿É¿¿µÄϵͳ¡£°´Öµµ÷ÓõÄÒ»¸öȱµãÊÇ£¬Èç¹û´«µÝ½Ï´óµÄÊý¾ÝÏÔò¸´ÖÆÕâ¸öÊý ......

C±ê×¼¿âº¯Êý

º¯ÊýÃû: abort
¹¦  ÄÜ: Òì³£ÖÕÖ¹Ò»¸ö½ø³Ì
Óà ·¨: void abort(void);
³ÌÐòÀý:
#include <stdio.h>
#include <stdlib.h>
 
int main(void)
{
  printf("Calling abort()\n");
  abort();
  return 0; /* This is never reached */
}
 
 
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ