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

Hidden Tricks (C)(091121)

 ÇëÔËÐÐÏÂÃæµÄ´úÂ룬¹Û²ì½á¹û£¬ÓÐÈË˵ÔõôÊÇËÀÑ­»·£¬ÄãͬÒâÂð£¿ÎªÊ²Ã´£¿
 
#include
 <stdio.h>
int
 main()
{
  int
 i = 0;
  int
 name[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
  for
 (i = 0; i <= 10; i++)
  {
    name[i] = 0;
    printf("ok\n"
);
  }
  return
 0;
}
 
Õâ¶Î´úÂëÒ»¿ªÊ¼ÎÒ»¹ÒÔΪÊÇС¶ù¿Æ£¬Ò»¸öºÜɵ±ÆµÄ´úÂ룬ÍêÈ«²»ÈÏΪ»áÊÇËÀÑ­»·

ºóÀ´ÊÂʵ֤Ã÷£¬ÊÇÎÒ×Ô¼ºÉµ±ÆÁË£¬ºÃÁË£¬²»¶à˵ÁË£¬ÏÖÔÚ½ÒÏþ´ð°¸ÁË¡£
 
´ð°¸£º
Õâ¶Î³ÌÐò»á½øÈëËÀÑ­»·£¬µ±
i
Ñ­»·µ½
10
µÄʱºò£¬±íÃæÉÏ¿´ÉÏÈ¥
”name[10]= 0”
Õâ¾ä²Ù×÷ÊÇ»áÔÚÔ¤ÁÏÖ®ÍâµÄ£¬ÒòΪÊý×éÖеÄÊ®¸öÊý×ÖµÄ×îºóÒ»¸öÊÇ
name[9],
µ«¾ÍÕâ×îºóÄǾä²Ù×÷µÄʱºò£¬ÉñÆæµÄÊÂÇé·¢ÉúÁË£¬³ÌÐò·¢ÉúÁËËÀÑ­»·£¬
i
ÉñÆæµÄÓÖ±»ÖóÉÁË
0.
ÆäʵµÀÀíºÜ¼òµ¥£¬ÒòΪ
name[10]
Æäʵ¾ÍÊDZäÁ¿
i,
ͨ¹ýµ÷ÊÔÎÒÃÇ¿ÉÒÔÖªµÀ£¬ÕâÁ½¸ö±äÁ¿Ö¸ÏòµØÖ·ÊÇÍêÈ«ÏàͬµÄ¡£ÔÚº¯ÊýΪ¾Ö²¿±äÁ¿ÔÚÕ»ÖÐÉêÇë¿Õ¼äµÄʱºò£¬
i
ÔÚ
name
Ç°ÃæÉêÇ룬
i
¾ÍÔÚ
name
µÄºóÃ棬ËùÒÔÒªÏÈÏò¸ßµØַдÈëÊý¾Ý£¬
i
Óë
name
Êý×éÊÇÁ¬ÐøÅÅÁеģ¬ËùÒÔ
”name[10]= 0”
Õâ¾äÆäʵ¾ÍÊÇ
”i = 0”
¡£
zz from http://blog.csdn.net/DrZinc/archive/2009/11/21/4848661.aspx


Ïà¹ØÎĵµ£º

GNU C library ±Ê¼Ç£¨2£©

ÄÚÈÝ£ºMemory
1. ¼¸¸ö»ù±¾¸ÅÄpage¡¢frame¡¢paging¡¢segment¡£
½ø³Ì·ÖÅäÄÚ´æµÄÁ½ÖÖģʽ£¬Ò»¸öʹÓà exec ϵÁк¯Êý£¬Ò»¸öʹÓà programmatically£¨malloc µÈº¯Êý£©¡£
ÖØÒªµÄ segment ÓÐ text segment£¨´æ·Å´úÂëµÈµÈ£¬Ò»°ãÔÚ½ø³ÌµÄÉúÃüÖÜÆÚÖв»±ä£©¡¢data segment
£¨´æ·ÅÊý¾Ý£¬ÄÜÓÃһЩº¯ÊýÀ´µ÷Õû´óС£¬²»¹ýµÍλ¶ËλÖò»± ......

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

C³ÌÐòÊÇÓÉÒ»×é»òÊDZäÁ¿»òÊǺ¯ÊýµÄÍⲿ¶ÔÏó×é³ÉµÄ¡£ º¯ÊýÊÇÒ»¸ö×ÔÎÒ°üº¬µÄÍê³ÉÒ»¶¨Ïà¹Ø¹¦ÄܵÄÖ´ÐдúÂë¶Î¡£ÏÂÃæС±àºÍ´ó¼Ò·ÖÏíÏÂCÓïÑÔÖеĺ¯Êý¡£
1.       fgetcº¯Êý
fgetcº¯ÊýµÄ¹¦ÄÜÊÇ´ÓÁ÷ÖжÁÈ¡×Ö·û£¬ÆäÓ÷¨ÊÇ£ºint fgetc(FILE *stream); ³ÌÐòÀý×ÓÈçÏ£º
#include <string.h ......

Symbian C/S »úÖÆ·ÖÎö

 
ÒÔÏ·ÖÎö»ùÓÚ£º
Developer Platform :S60 3rd Edition, Feature Pack 2 SDK
Operating System :Symbian OS v9.3
Ò»£¬ÎªÊ²Ã´ÒªÊ¹ÓÃClient/Server¼Ü¹¹
ÔÚSymibian OSÖÐËùÓеÄÒì²½·þÎñ¶¼ÊÇServerͨ¹ýC/S¼Ü¹¹À´ÊµÏֵġ£ClientÊÇÀûÓÃServerÌṩµÄÌض¨·þÎñµÄ³ÌÐò£¬Server½ÓÊÜÀ´ÖÁClientµÄÇëÇóÏûÏ¢²¢Í¬²½»òÒì²½µ ......

ʹÓÃEclipse+MinGW¹¹½¨WindowsÉϵÄC/C++¿ª·¢»·¾³

Ç°ÑÔ
Eclipse×÷Ϊһ¿î¼«ÆäÓÅÐãµÄJava IDE£¬ÒѾ­µÃµ½¹ã·ºµÄÈÏ¿É¡£µ±È»Eclipse²¢²»ÏÞÓÚJava¿ª·¢£¬ÓÉÓÚÆäÓÅÐãµÄ»ù´¡¼Ü¹¹£¬EclipseÒѾ­³ÉΪһ¸ö¿ÉÒÔÈÝÄÉÒ»ÇÐÓ뿪·¢ÓйصŤ¾ßµÄƽ̨¡£
µ±È»ÈÝÄÉÒ»Çв¢²»Òâζ×ÅÊʺÏÓÚÒ»ÇС£ÏñC/C++ÕâÑùÔç¾Í´æÔڵIJ¢¹ã·ºÓ¦ÓõÄÓïÑÔ£¬Ôç¾ÍÓÐÒ»´óÅú¿ÉÓõÄIDE£¬Ò²ÓкܶàÈËϲ»¶ÓÃvi/emacs×÷Ϊ×Ô¼ºµÄ¿ ......

C×Ö·û´®²Ù×÷º¯ÊýÔ´Âë

 
#ifndef _PPC_BOOT_STRING_H_
#define _PPC_BOOT_STRING_H_
#include <stddef.h>
extern char *strcpy(char *dest, const char *src);
extern char *strncpy(char *dest, const char *src, size_t n);
extern char *strcat(char *dest, const char *src);
extern int strcmp(const char *s1, const cha ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ