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

C¶àάÊý×é

 Ò»¡¢¶àάÊý×éµØÖ·µÄ±íʾ·½·¨
¡¡¡¡ÉèÓÐÕûÐͶþάÊý×éa[3][4]ÈçÏ£º
¡¡¡¡0 1 2 3
¡¡¡¡4 5 6 7
¡¡¡¡8 9 10 11
¡¡¡¡ÉèÊý×éaµÄÊ×µØַΪ1000£¬¸÷ϱê±äÁ¿µÄÊ×µØÖ·¼°ÆäÖµÈçͼËùʾ¡£  
ÔÚÇ°ÃæÔø¾­½éÉܹý£¬ CÓïÑÔÔÊÐí°ÑÒ»¸ö¶þάÊý×é·Ö½âΪ¶à¸öһάÊý×éÀ´´¦Àí¡£Òò´ËÊý×éa¿É·Ö½âΪÈý¸öһάÊý×飬¼´a[0]£¬a[1]£¬a[2]¡£Ã¿Ò»¸öһάÊý×éÓÖº¬ÓÐËĸöÔªËØ¡£ÀýÈça[0]Êý×飬º¬ÓÐa[0][0]£¬a[0][1]£¬a[0][2]£¬a[0][3]ËĸöÔªËØ¡£Êý×é¼°Êý×éÔªËصĵØÖ·±íʾÈçÏ£ºaÊǶþάÊý×éÃû£¬Ò²ÊǶþάÊý×é0ÐеÄÊ×µØÖ·£¬µÈÓÚ1000¡£a[0]ÊǵÚÒ»¸öһάÊý×éµÄÊý×éÃûºÍÊ×µØÖ·£¬Òò´ËҲΪ 1000¡£*(a+0)»ò*aÊÇÓëa[0]µÈЧµÄ£¬ Ëü±íʾһάÊý×éa[0]0 ºÅÔªËصÄÊ×µØÖ·¡£Ò²Îª1000¡£&a[0][0]ÊǶþάÊý×éaµÄ0ÐÐ0ÁÐÔªËØÊ×µØÖ·£¬Í¬ÑùÊÇ1000¡£Òò´Ë£¬a£¬a[0]£¬* (a+0)£¬*a£¬&a[0][0]ÊÇÏàµÈµÄ¡£Í¬Àí£¬a+1ÊǶþάÊý×é1ÐеÄÊ×µØÖ·£¬µÈÓÚ1008¡£a[1]Êǵڶþ¸öһάÊý×éµÄÊý×éÃûºÍÊ×µØÖ·£¬Òò´ËҲΪ1008¡£ &a[1][0]ÊǶþάÊý×éaµÄ1ÐÐ0ÁÐÔªËصØÖ·£¬Ò²ÊÇ1008¡£Òò´Ëa+1,a[1],*(a+1),&a[1][0]ÊǵÈͬµÄ¡£Óɴ˿ɵóö£ºa+i£¬a[i]£¬*(a+i)£¬&a[i][0]ÊǵÈͬµÄ¡£´ËÍ⣬&a[i]ºÍa[i]Ò²ÊǵÈͬµÄ¡£ÒòΪÔÚ¶þάÊý×éÖв»ÄÜ°Ñ&a[i]Àí½âΪԪËØa[i]µÄµØÖ·£¬²»´æÔÚÔªËØa[i]¡£
¡¡¡¡CÓïÑԹ涨£¬ËüÊÇÒ»ÖÖµØÖ·¼ÆËã·½·¨£¬±íʾÊý×éaµÚiÐÐÊ×µØÖ·¡£ÓÉ´Ë£¬ÎÒÃǵóö£ºa[i]£¬&a[i]£¬*(a+i)ºÍa+iÒ²¶¼ÊǵÈͬµÄ¡£ÁíÍ⣬a[0]Ò²¿ÉÒÔ¿´³ÉÊÇa[0]+0ÊÇһάÊý×éa[0]µÄ0ºÅÔªËصÄÊ×µØÖ·£¬¶øa[0]+1ÔòÊÇa[0]µÄ1ºÅÔªËØÊ×µØÖ·£¬Óɴ˿ɵóöa[i]+jÔòÊÇһάÊý×éa[i]µÄjºÅÔªËØÊ×µØÖ·£¬ËüµÈÓÚ&a[i][j]¡£ÓÉ a[i]=*(a+i)µÃa[i]+j=*(a+i)+j£¬ÓÉÓÚ*(a+i)+jÊǶþάÊý×éaµÄiÐÐjÁÐÔªËصÄÊ×µØÖ·¡£¸ÃÔªËصÄÖµµÈÓÚ*(* (a+i)+j)¡£
[Explain]
#define PF "%d,%d,%d,%d,%d,\n"
main(){
static int a[3][4]={0,1,2,3,4,5,6,7,8,9,10,11};
printf(PF,a,*a,a[0],&a[0],&a[0][0]);
printf(PF,a+1,*(a+1),a[1],&a[1],&a[1][0]);
printf(PF,a+2,*(a+2),a[2],&a[2],&a[2][0]);
printf("%d,%d\n",a[1]+1,*(a+1)+1);
printf("%d,%d\n",*(a[1]+1),*(*(a+1)+1));
}
¡¡¡¡¶þ¡¢¶àάÊý×éµÄÖ¸Õë±äÁ¿
¡¡¡¡°Ñ¶þάÊý×éa ·Ö½âΪһάÊý×éa[0],a[1],a[2]Ö®ºó£¬ÉèpΪָÏò¶þάÊý×éµÄÖ¸Õë±äÁ¿¡£¿É¶¨ÒåΪ£º int (*p)[4] Ëü±íʾpÊÇÒ»¸öÖ¸Õë±äÁ¿£¬ËüÖ¸Ïò¶þάÊý×éa »òÖ¸ÏòµÚÒ»¸öһάÊý×éa[0]£¬ÆäÖµµÈÓÚa,a[0]£¬»ò&a[0][0


Ïà¹ØÎĵµ£º

ÓÃCSocket¹¹½¨C/S½á¹¹

תÌûhttp://www.cppblog.com/bidepan2023/archive/2008/01/22/41632.html
CSocketÅÉÉúÓÚCAsyncSocket, ËùÓÐÊ©ÖîÓÚÉϵIJÙ×÷½ÔΪͬ²½²Ù×÷¡£±ÈÈçConnnect,ReceiveµÈ¡£
ͬ²½²Ù×÷µÄÓŵãÊǼòµ¥Ò×Ó㬵«È±µãÒ²ÏÔ¶øÒ×¼û£¬Ð§ÂʵÍÏ£¬ÒòΪÄã±ØÐëµÈµ½Ò»¸ö²Ù×÷Íê³ÉÖ®ºó²ÅÄܽøÐÐÏÂÒ»¸ö²Ù×÷¡£
Èç¹ûÄãºÜ¹ØÐÄЧÂÊ£¬¾ÍÓ¦¸ÃÓÅÏÈʹÓÃCAsyncS ......

Pelles C±àÒëÆ÷¼ò½é

Ö÷Ò³£º        http://www.christian-heffner.de/
ÏÂÔØÁ´½Ó£º  http://www.christian-heffner.de/index.php?page=download¡´=en
¼ò½é£º
»ùÓÚLCCµÄÒ»¿îC±àÒëÆ÷£¬Óбê×¼µÄIDE½çÃ棬ÀàËÆVCµÄ½çÃ棬µ±È»ºÍDEV-C++»¹ÓÐMingW32 studio½çÃæÒ²ºÜÏñ£¬¿ÉÒÔÓÃÓÚ´´½¨Ð¡Ò»µãµÄ»ùÓÚCµÄ¹¤³Ì¡£
IDE´úÂë±à¼­½ ......

¹é²¢ÅÅÐòËã·¨ C´úÂëʵÏÖ

ºÏ²¢ÅÅÐò£¨MERGE SORT£©ÊÇÓÖÒ»À಻ͬµÄÅÅÐò·½·¨£¬ºÏ²¢µÄº¬Òå¾ÍÊǽ«Á½¸ö»òÁ½¸öÒÔÉϵÄÓÐÐòÊý¾ÝÐòÁкϲ¢³ÉÒ»¸öеÄÓÐÐòÊý¾ÝÐòÁУ¬Òò´ËËüÓֽй鲢Ëã·¨¡£ËüµÄ»ù±¾Ë¼Ïë¾ÍÊǼÙÉèÊý×éAÓÐN¸öÔªËØ£¬ÄÇô¿ÉÒÔ¿´³ÉÊý×éAÊÇÓÖN¸öÓÐÐòµÄ×ÓÐòÁÐ×é³É£¬Ã¿¸ö×ÓÐòÁеij¤¶ÈΪ1£¬È»ºóÔÙÁ½Á½ºÏ²¢£¬µÃµ½ÁËÒ»¸ö N/2 ¸ö³¤¶ÈΪ2»ò1µÄÓÐÐò×ÓÐòÁУ¬ÔÙÁ½Á½ ......

×Ô¼ºÐ´µÄC/C++±àÒëÆ÷Doctors[Èí¼þ+Îĵµ]

×Ô¼ºÐ´µÄC/C++±àÒëÆ÷Doctors[Èí¼þ+Îĵµ]
http://blog.csdn.net/huyansoft/archive/2009/08/20/4464772.aspx
¸üа汾1.0.1£º¸Ã°æ±¾½â¾öÁË֮ǰ1.0.0°æ±¾ÖÐÕÒ²»µ½Á´½Ó¿âlibc.libµÄÎÊÌ⣬ÒÔ¼°IDEϵã»÷Project²Ëµ¥³öÏÖµÄBUG¡£ÏÂÔصØÖ·£ºhttp://download.csdn.net/source/1597132
Doctors±àÒëÆ÷ÄÚ²¿ÊµÏÖ
For version 1.0.1 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ