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

C Ö¸Õë

#include
void printptr(int *i){
printf("&i of printfptr = %#X\n",&i);
printf("i of printfptr = %#X\n",i);
printf("*i of printfptr = %d\n",*i);
printf("i+1 of printfptr = %#X\n",i+1);
printf("*(i + 1) of printfptr = %d\n",*(i+1));
}
void printptr2(int *i,int j){
printf("&i of printfptr2 = %#X\n",&i);
printf("i of printfptr2 = %#X\n",i);
printf("*i of printfptr2 = %d\n",*i);
printf("i+1 of printfptr2 = %#X\n",i+1);
printf("*(i + 1) of printfptr2 = %d\n",*(i+1));
}
void printptr3(int *i){
printf("&i of printfptr3 = %#X\n",&i);
printf("i of printfptr3 = %#X\n",i);
printf("*i of printfptr3 = %d\n",*i);
printf("i+1 of printfptr3 = %#X\n",i+1);
printf("*(i + 1) of printfptr3 = %d\n",*(i+1));
}
void printptr4(int *i,int j){
printf("&i of printfptr4 = %#X\n",&i);
printf("i of printfptr4 = %#X\n",i);
printf("*i of printfptr4 = %d\n",*i);
printf("i+1 of printfptr4 = %#X\n",i+1);
printf("*(i + 1) of printfptr4 = %d\n",*(i+1));
}
void printptr5(int **i){
printf("&i of printfptr5 = %#X\n",&i);
printf("i of printfptr5 = %#X\n",i);
printf("*i of printfptr5 = %d\n",*i);
printf("i+1 of printfptr5 = %#X\n",i+1);
printf("*(i + 1) of printfptr5 = %d\n",*(i+1));
printf("**i of printfptr5 = %d\n",**i);
printf("*(*i+1) of printfptr5 = %d\n",*(*i+1));
printf("**(i+1) of printfptr5 = %d\n",**(i+1));
}
void printptr6(int **i){
printf("&i of printfptr6 = %#X\n",&i);
printf("i of printfptr6 = %#X\n",i);
printf("*i of printfptr6 = %d\n",*i);
printf("i+1 of printfptr6 = %#X\n",i+1);
printf("*(i + 1) of printfptr6 = %d\n",*(i+1));
print


Ïà¹ØÎĵµ£º

ÔÚvc.netÖеÄC/C++´úÂëÉú³ÉDLL²½Öè


1 Ñ¡Ôñnew->project->win32 console project£»
    ÔÚÕâÒ»²½µÄÑ¡¿òÉÏÓÐÒ»¸öÑ¡ÏîÊÇ create dictionary for solution, ÎÒ²»ÖªµÀÕâ¸ö¾ßÌåÊÇʲô×÷Óã¬Ñ¡ÁËÖ®ºó»áÏîÄ¿³öÏÖÁ½²ãÎļþ¼Ð£¬±ÈÈçÄã´´½¨Ò»¸öÃüÃûΪtestµÄÏîÄ¿£¬»áÉú³ÉtestÎļþ¼Ð£¬testÖаüº¬ÁíÒ»¸ötestÎļþ¼Ð£¬ÄãµÄÏîĿʵ¼ÊÉÏ·ÅÔÚÁËÄÚ²ãte ......

´î½¨eclipseϵÄcºÍc++¿ª·¢»·¾³


 
ÎÒÃÇÐèÒªÒ»¸öcdt£¬Õâ¸ö¿ÉÒÔÔÚEclipse¹ÙÍøÏÂÔØ¡£
ÎÒÃÇÐèÒªMinGW——C/C++±àÒëƽ̨£¬ÏÂÔغóÐèÒª°²×°£¬Í¬Ê±Ñ¡ÖÐg++¡¢MinGW Make£¬Í¬Ê±ÉèÖû·¾³±äÁ¿£¬½«%MinGW_HOME%\binÉèÖõ½PATHÖУ¬È»ºóÎÒÃÇ¿ÉÒÔͨ¹ýÃüÁîÐÐÇû÷gcc£¬¿´ÊÇ·ñÓÐЧ¹û¡£
ÎÒÃÇÐèÒªgdb——C/C++µ÷ÊÔƽ̨£¬ÏÂÔغó°²×°£¬Ä¬Èϵ½MinGW_ ......

C/C++µ¥Ôª²âÊÔÀíÂÛ¾«Òª£¨Èý£©

1.3 µ¥Ôª²âÊÔÄܲúÉúÄÄЩЧÒ棿
    µ¥Ôª²âÊÔµÄЧÒæÒѾ­µÃµ½¹ã·ºµÄÈÏͬ£¬ÏÖÔÚµÄÎÊÌâÒѾ­²»ÊÇÓÐûÓбØÒª×ö£¬Öµ²»ÖµµÃ×ö£¬¶øÊÇÈçºÎ¶à¿ìºÃÊ¡µØ×öºÃµ¥Ôª²âÊÔ£¬ËùÒÔ£¬¹ØÓÚЧÒ棬ÕâÀïÖ»ÊǼòµ¥µÄ½éÉÜһϡ£
ЧÒæÒ»£¬±£Ö¤´úÂëÖÊÁ¿
   
    Ö»Óе¥Ôª²âÊÔ²ÅÄÜÍêÕû¼ì²â´úÂëµ¥ÔªµÄ¹¦Ä ......

CºÍC++»ìÓÃ

Yes£¬ CºÍC++»ìÓõÄÈ·ÊÇnatural£¬±Ï¾¹¾ø´ó¶àÊýC++ѧϰÕ߶¼´ÓCѧÆð£¬C++¼æÈÝC¾ÍÊÇΪÁ˽µµÍѧϰÃż÷¡£µ«ÊÇCºÍC++»ìÓÃÈ´²»Ò»¶¨ÊÇnecessary¡£ ÎÒÃÇ°ÑCºÍC++¹éΪһÀ࣬ͨ³£Ð´×÷C/C++£¬ÄÇÊÇÒòΪ´ÓÓïÑԽǶȽ²CµÄÎÊÌâ¾ÍÊÇC++µÄÎÊÌ⣬µ«ÊÇ·´¹ýÀ´¾Í²»³ÉÁ¢£¬Òò´Ë¾ßÌ嵽ij¸ö¹¤³ÌµÄʱºò£¬ÄãÔÚ¿ª¹¤Ö®Ç°¾Í±ØÐë¾ö¶¨µ½µ×ʹÓÃC»¹ÊÇC++£¬»òÕß˵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ