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

c/C++±àÒëµÄ³ÌÐòÕ¼ÓõÄÄÚ´æÇé¿ö ÎÄ×Ö³£Á¿Çø

Ê×ÏÈ¿´ÏÂÏÂÃæÕâ¶Î£º
int main()
{
char *name = "fengkewei";
char name1[] = "fengkewei";
char *name2 = "fengkewei";
char *name3 = "woaifengkewei";
int i = 10;
int j = 10;
int k = 11;
return 0;
}
ÈôÄú¾õµÃËüÃÇÓ¦¸Ã¶¼±£´æÔÚÄÚ´æÖеÄÒ»¿éµØ·½£¬ÄÇÇëÍùÏ¿´¡£¡£¡£¡£
ÏÂÃæÊDZàÒëÆ÷Ϊ¸÷¸ö±äÁ¿·ÖÅäµÄÄÚ´æµØÖ·£¬ÓÉÓÚ·ÖÅäÔÚÕ»ÉÏ ËùÒÔµØÖ·ÊǵݼõµÄ
---------------------Õ»Çø------------------------------------
+   &name 0x0013ff5c unsigned char * *
+   &name1 0x0013ff48 unsigned char [10]*
+   &name2 0x0013ff3c unsigned char * *
+   &name3 0x0013ff30 unsigned char * *
+   &i 0x0013ff24 int *
+   &j 0x0013ff18 int *
+   &k 0x0013ff0c int *
---------------------------------------------------------------
&name ºÍ&name1[] Ïà²î20¸ö×Ö½Ú µ«"fengkewei"Ö»ÓÐ10¸ö×Ö½Ú£¨´ø¿Õ×Ö·û£©
&name1[]ºÍ&name2 Ïà²î12¸ö×Ö½Ú
ºóÃ涼Õý³£ÁË ¶¼²î12
ΪʲôÊÇ12£¿
————————————————————————————————————————————
ÏÂÃæÊǸ÷×Ö·û´®µÄÊ×µØÖ· ËüÃǶ¼ÔÚÎÄ×Ö³£Á¿ÇøÀï ÏàͬҲ¾ÍÏàͬÁË ²»Í¬ÔòÊǵÝÔö·ÖÅäµÄ£¨ ÎÄ×Ö³£Á¿ÇøÒ²ÊǵÝÔö·ÖÅäµÄ)
---------------------------ÎÄ×Ö³£Á¿Çø-------------------------------------------------
+   name 0x004156b8 "fengkewei" unsigned char *
+   name2 0x004156b8 "fengkewei" unsigned char *
+   name3 0x00416010 "woaifengkewei" unsigned char *
+   name1 0x0013ff48 "fengkewei" unsigned char [10]
¿É¼ûname1[]ÊÇÔÚÒ»¸ö²»Í¬µÄµØ·½µÄ Ò²¾ÍÊÇ˵Ëü¾ÍÊÇÔÚÕ»ÉÏ
 
 
ÏÖÔÚÎÒÃÇÉèÖÃÒ»¸öÕûÐÍÖ¸Õë
int *p;
p = &i;
ÄÇpµÄµØÖ·Ó¦¸ÃÊÇÖ¸ÏòiµÄµØÖ·£¬Ö¸ÏòÕ»Çø
¹ûÈ»£º
+   &i 0x0013ff24 int *
+   p 0x0013ff24 int *
----------------------------------------------------------


Ïà¹ØÎĵµ£º

linux C forkº¯Êý

´´½¨Ð½ø³Ì£ºforkº¯Êý
1.1.1. forkº¯Êý¸Éʲô£¿
     #include <sys/types.h>
     #include <unistd.h>
     pid_t fork(void);
      ‘fork()’º¯ÊýÓÃÓÚ´ÓÒÑ´æÔÚ½ø³ÌÖд´½¨Ò»¸öнø³Ì¡£Ð½ø³Ì³ÆΪ×Ó½ ......

µÝ¹é »ØËÝ·¨Çó½â8»ÊºóÎÊÌ⣨C£©

ÎÞÒâÖз­³öÁËNÄêǰдµÄµÝ¹é-»ØËÝ·¨Çó½â8»ÊºóÎÊÌ⣬¸É´âÈûµ½²©¿ÍÖаɡ£
#include <stdio.h>
#include <conio.h>
#include <math.h>
#define QUEENS 8
// ¼Ç¼½âµÄÐòºÅµÄÈ«¾Ö±äÁ¿¡£
int iCount = 0;
// ¼Ç¼»ÊºóÔÚ¸÷ÁÐÉϵķÅÖÃλÖõÄÈ«¾ÖÊý×é¡£
int Site[QUEENS];
// µÝ¹éÇó½âµÄº¯Êý¡£
void Q ......

¡¶the c programming language¡·»Ø¹ËÖ®Ò»

1,³ÌÐò¿ØÖÆÖеĿØÖÆÁ÷Óï¾äÓÃÓÚ¿ØÖƸ÷¼ÆËã»ú²Ù×÷Ö´ÐеĴÎÐò¡£
 Ê²Ã´ÊÇ¿ØÖÆÁ÷Óï¾äÏëÁË°ëÌ죬ԭÀ´²»¹ýÊÇÕâЩ£¬if-elseÓï¾ä£¬else-ifÓï¾ä£¬switchÓï¾ä£¬whileÑ­»·£¬forÑ­»·£¬do-whileÑ­»·µÈ¡£
2,»¨À¨ºÅ{}£¬ÆäÖеÄÓÒ»¨À¨ºÅÓÃÓÚ½áÊø³ÌÐò¿é£¬Æäºó²»ÐèÒª·ÖºÅ¡£
  µ±³õÒ»¿´µ½“Æäºó²»ÐèÒª·ÖºÅµÄ”ʱºòÏëÁË°ëÌ ......

Window+GCC+CDTÓÃEclipse¿ª·¢C¡¢C++

Eclipse³ýÁË¿ÉÒÔ開發JavaÖ®Í⣬還Ö§Ô®ÁË許¶à語ÑÔ£¬現ÔÚÏȽé紹
C¡¢C++µÄ開發環¾³設¶¨£¬ÒÔááÓÐ機會ÔÙ½é紹ÆäËüµÄ¡£Enjoy it£¡
OS£ºWindows XP Professional SP1
ʹÓð汾£ºEclipse 2.1.2
Ò».Ê×ÏÈÒªÏÂ載CDT£¬Eclipse 2.1.2 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ