Ò»¡¢Ò»Ð©³£¹æÖоٵÄC¿¼Ìâ
µÚÒ»Ì⣺д³öÏÂÊö³ÌÐò½á¹û£º
int m[][3] = {1,4,7,2,5,8,3,6,9};
int i, j, k = 2;
for (i = 0; i < 3; i++) {
printf(¡°%d¡±, m[k][i]);
}
ÎÊÌâËùÔÚ£º±¾Ì⿼µãÒ»Ñ۾ͿÉÒÔ¿´³ö£¬¶þÖØÊý×éÀ²£¡
µÚ¶þÌ⣺ÏÂÁÐÄĸöÒýÓÃÊDz»ÕýÈ·µÄ£¿
int a[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, *p = a;
(A) a[p-a]; (B) *(&a[i]); (c) p[i]; (D) *(*(a+i));
µÚÈýÌ⣺ÏÂÁÐ4¸öÑ¡ÏîÖУ¬Äĸö½á¹ûΪ6£¿
int a[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, *p = a;
(A) *p + 6; (B) *(p+6); (C) *p += 5; (D) p+5;
µÚËÄÌ⣺¹ØÓÚ¶þ²æÊ÷µÄ£¬¸øÄãÇ°ÐòÓëÖÐÐò£¬ÈÃÄ㻳ö¶þ²æÊ÷ͼÐΣ»
µÚÎåÌ⣺¹ØÓÚ²Ù×÷ϵͳ·½ÃæµÄ£¬¾ßÌåÌâÄ¿¼Ç²»ÇåÁË£¬´ó¸ÅÒâ˼ÈçÏ£º
ÔÚ¶àÈÎÎñ²Ù×÷ϵͳÖУ¬ÈÎÎñ¼äµÄͨÐÅ·½Ê½ÓÐÄļ¸ÖÖ£¿ÈçºÎÈÎÎñ¼ä»¥³â£¨²¢¾ÙÀý˵Ã÷£©£»
©ÁËÒ»¸ö¿¼µã£¬¼Ç²»ÆðÀ´ÁË£¬ÏëÆðÀ´ÔÙ²¹ÉÏ°É£¡
¶þ¡¢Ò»Ð©¹ÖÌ⣨±ðÎó»á£¬²»ÊÇÄÇЩƽʱ¸ù±¾²»Óõġ¢Ö»·ÅÔÚê¸ê¹µÄÆ«Ì⣬¶øÊÇÍøÉϵÄÔÌ⣬^_^£©
´Ë¹«Ë¾±ÊÊÔÌâµÄÁíÍâÒ»¸ö¹ÖÏñ¾ÍÊÇ£¬Ö±½Ó½«ÍøÂçÉÏÒѾºÜ¾ÃºÜ¾ÃÒÔÇ°µÄÌâÄ¿£¨¿Éν˵ÊÇǶÈë½çC±ÊÊÔÌâµÄ¾µäÁË£¬ÔÚżµÄ¡°¼¸µÀ¾µä£ÃÓïÑÔÃæÊÔÌ⡱ÌùÖУ¬ÒѾÓÐÁË£©·ÅÈëÊÔ¾íÖп¼Ä㣬һ¹²´ó¸ÅÓÐ3µÀÌ⣬ÆäÖÐÓÐÁ½µÀÊÇÔ·â²»¶¯ÕÕ°áµÄ£¬¾ßÌåÌâÄ¿ÈçÏ£º
1¡¢Ð´Ò»¸ö¡°±ê×¼¡±ºêMIN£¬Õâ¸öºêÊäÈëÁ½¸ö²ÎÊý²¢·µ»Ø½ÏСµÄÒ»¸ö¡£
2¡¢¸ø¶¨Ò»¸öÕûÐͱäÁ¿a£¬Ð´Á½¶Î´úÂ룬µÚÒ»¸öÉèÖÃaµÄbit 3£¬µÚ¶þ¸öÇå³ýa µÄbit 3¡£ÔÚÒÔÉÏÁ½¸ö²Ù×÷ÖУ¬Òª±£³ÖÆäËüλ²»±ä¡£
3¡¢ÔÚij¹¤³ÌÖУ¬ÒªÇóÉèÖÃÒ»¾ø¶ÔµØַΪ0x67a9µÄÕûÐͱäÁ¿µÄֵΪ0xaa66¡£Ð´´úÂëÈ¥Íê³ÉÕâÒ»ÈÎÎñ¡££¨×¢£ºÕâÒ»ÌâÉÔ΢¸ÄÁ˸ģ¬ºÇºÇ£¬¸ÄµÄµØ·½¾ÍÊÇÎÄ×Ö±äÁ˸ö˵·¨£¬±ä³¤ÁË£¬^_^£¬àÅ£¬µØÖ·Ò²Ó¦¸Ã±äÁË°É£¬°¦£¬¼Ç²»ÇåÁË£¡£©
Èý¡¢»¹ÓÐÒ»µÀ¡¶¸ßÖÊÁ¿C++-C±à³ÌÖ¸ÄÏ¡·ÖеÄÌâÄ¿
Í·ÎļþÖÐµÄ ifndef/endif ¸ÉʲôÓã¿£¨ºÇºÇ£¬ÓëÔÌâÏà±ÈÖ»ÊÇÉÙÁËdefine£©£¡
»¹ÓÐһЩ¾ÍÊǹØÓڽṹÌå¡¢£«£«¡¢--µÈһϵÁÐÊÔÌ⣻
ÒÔÉϾÍÊÇij¹«Ë¾linuxÄÚºËÇý¶¯µÄ±ÊÊÔÌ⣬ϣÍû¶ÔӦƸµÄÅóÓÑ£¬Äܹ»ÓÐËù°ïÖú£¡