ÎÊÌâÃèÊö£º
ÓÐÒ»¼òµ¥µÄC³ÌÐò£¬ÈçÏ£º
void foo ( ) {
int i ;
p r i n t f ( "%d " , i ++);
}
int main ( ){ int j ;
for ( j = 0 ; j < 1 0 ; ++j ) foo ( ) ;
}
º¯ÊýfooÀïÃæµÄ±äÁ¿iûÓгõʼ»¯£¬µ«ÊÇÔÚÓеÄϵͳÀï´òÓ¡Êä³öµÄ½á¹ûÊÇ0123456789£»¶øÔÚÆäËüµÄһЩϵͳÀï´òÓ¡Êä³ö ......
GCCÊÇÃâ·ÑµÄÂð£¿ÄÇÓУ¿
LINUXϵͳÔõôװ£¿
ÖÐÎÄÔõôÉèÖã¿
Äã×°ÍêLinuxϵͳ¾Í»á×Ô´øGCC£¬windowsÏÂÒ²ÓÐGCC£¬±ÈÈçdev-c++,CODE::Blocks
linuxϵͳ°²×°¸ù¾Ý²»Í¬µÄlinux°æ±¾ÍøÉ϶¼Óн̳̣¬¿´Ï¾ͺÃÁË£¬Ö÷ÒªÊÇÊÖ¶¯·ÖÇøÄÇŪһϾͿÉÒÔÁË
×°linuxʱºò£¬Ñ¡ÔñÖÐÎÄ£¬ÖÐÎľͻá×Ô¶¯ÉèÖúÃ
1.GCC×°ºÃLinux¾ ......
ÓÐÕâÑùÁ½¸öÎÊÌ⣬ϣÍû¸ßÊÖÖ¸µã£º
µÚÒ»£º
struct struct_A{
int a;
char b;
int c;
short d;
}
struct struct_B{
int a;
char b;
short c;
int d;
}
struct_A a;
struct _B b;
ÎÊ£ºsizeof(struct_A a) = ?
sizeof(struct ......
1001.exe ÖÐµÄ 0x0041394f ´¦Î´´¦ÀíµÄÒì³£: 0xC0000005: дÈëλÖà 0x66792e62 ʱ·¢Éú·ÃÎʳåÍ»
ÕâÊÇÔõô»ØÊ£¿Ð»Ð»ÁË£¬ÎÒÊDzËÄñ
ËÖªµÀÔõô»ØÊ¡¡ÕâÊǸöͨÓõĴíÎóÌáʾ¡¡ÉÏ´úÂë
ÐèÒªÖØнøÐбàÒë
ÒýÓÃ
ÐèÒªÖØнøÐбàÒë
´óÉñ£¬ÄãÊÇÈçºÎµÃÖªµÄ¡¡
CÓïÑÔÂ¹À¼ÆÄãÊÇÊý×éÔ½½çÖ®ÀàµÄ£¬Ïëµ±ÄêÎÒ ......
¸÷λ´óÏÀ£¬Ð¡µÜÓÐÒ»¸öÎÊÌâÇë½Ì£¬ÈçÏÂ
Õâ¸ö #define stack_push ÊÇÒ»¸öº¯Êý£¬µ÷ÓÃÊÇÕâÑùµÄ
int len;
stack_t *stack;
const char *curpos;
int seglen;
const char *next_slash;
int i;
---------
ÒÔÉÏÊDZäÁ¿µÄ¶¨Òå¡£
if (stack_push(curpos, const char *, stack) < 0 || stack_ ......
É¢·Ö£¬ÎªC£¯C++ÂÛ̳Ôö¼ÓµãÈËÆø£¡£¡
jf
jf£¬Â¥Ï±£³Ö¶ÓÐÎ
Ö»¼û¹ý²»¸ÒÉ¢·ÖµÄ£¬Ã»¼û¹ý²»¸Ò½Ó·ÖµÄ
½Ó
Ç°ÅÅÁôÃû
jf
ÕâÀïÈËÆø»¹²»´í°¡£¡
½Ó·Ö ¡¡ C/C++ºÃÈÈÄֶÆäËû°æ¿é¾ÍÏà¶ÔûÕâôÈÈÁË
ÕâÀïÒ»Ö±ºÜÈÈÄÖ¡£
½Ó·Ö£¡~
½Ó·Ö£¡~ ÆÚ´ýÖС¡
jf jf jf
ºÎ±ØÄØ£¬Ã»×÷Óõģ¬ÒªÀ´ÂÛÌ ......