\n
\u4e8c\u7ef4\u6570\u7ec4\u521d\u59cb\u5316\u7684\u5f62\u5f0f\u4e3a\uff1a<\/p>\n
\u3000\u3000\u6570\u636e\u7c7b\u578b \u6570\u7ec4\u540d[\u6574\u5e38\u91cf\u8868\u8fbe\u5f0f][ \u6574\u5e38\u91cf\u8868\u8fbe\u5f0f]={ \u521d\u59cb\u5316\u6570\u636e }\uff1b
\n
\u3000\u3000\u5728{ }\u4e2d\u7ed9\u51fa\u5404\u6570\u7ec4\u5143\u7d20\u7684\u521d\u503c\uff0c\u5404\u521d\u503c\u4e4b\u95f4\u7528\u9017\u53f7\u5206\u5f00\u3002\u628a{ }\u4e2d\u7684\u521d\u503c\u4f9d\u6b21\u8d4b\u7ed9\u5404\u6570\u7ec4\u5143\u7d20\u3002
\n <\/p>\n
\u3000\u3000\u6709\u5982\u4e0b\u51e0\u79cd\u521d\u59cb\u5316\u65b9\u5f0f\uff1a<\/p>\n
<\/p>\n
\u3000\u3000\u2474 \u5206\u884c\u8fdb\u884c\u521d\u59cb\u5316
\n
\u3000\u3000int a[2][3]={ {1,2,3},{4\uff0c5\uff0c6}};
\n
\u3000\u3000\u5728{ }\u5185\u90e8\u518d\u7528{ }\u628a\u5404\u884c\u5206\u5f00\uff0c\u7b2c\u4e00\u5bf9{ }\u4e2d\u7684\u521d\u503c1\uff0c2\uff0c3\u662f0\u884c\u76843\u4e2a\u5143\u7d20\u7684\u521d\u503c\u3002\u7b2c\u4e8c\u5bf9{ }\u4e2d\u7684\u521d\u503c4\uff0c5\uff0c6\u662f1\u884c\u76843\u4e2a\u5143\u7d20\u7684\u521d\u503c\u3002\u76f8\u5f53\u4e8e\u6267 \u884c\u5982\u4e0b\u8bed\u53e5\uff1a
\n
\u3000\u3000int a[2][3]\uff1b
\n
\u3000\u3000a[0][0]=1\uff1ba[0][1]=2\uff1ba[0][2]=3\uff1ba[1][0]=4\uff1ba[1][1]=5\uff1ba[1][2]=6\uff1b
\n <\/p>\n
\u3000\u3000\u6ce8\u610f\uff0c\u521d\u59cb\u5316\u7684\u6570\u636e\u4e2a\u6570\u4e0d\u80fd\u8d85\u8fc7\u6570\u7ec4\u5143\u7d20\u7684\u4e2a\u6570\uff0c\u5426\u5219\u51fa\u9519\u3002<\/p>\n
<\/p>\n
\u3000\u3000\u2475 \u4e0d\u5206\u884c\u7684\u521d\u59cb\u5316
\n
\u3000\u3000int a[2][3]={ 1,2\uff0c3\uff0c4\uff0c5\uff0c6};
\n <\/p>\n
\u3000\u3000\u628a{ }\u4e2d\u7684\u6570\u636e\u4f9d\u6b21\u8d4b\u7ed9a\u6570\u7ec4\u5404\u5143\u7d20\uff08\u6309\u884c\u8d4b\u503c\uff09\u3002\u5373a[0][0]=1; a[0][1]=2\uff1ba[0][2]=3\uff1ba[1][0]=4\uff1ba[1][1]=5\uff1ba[1][2]=6\uff1b<\/p>\n
<\/p>\n
\u3000\u3000\u2476 \u4e3a\u90e8\u5206\u6570\u7ec4\u5143\u7d20\u521d\u59cb\u5316
\n
\u3000\u3000static int a[2][3]={ {1,2},{4}};
\n <\/p>\n
\u3000\u3000\u7b2c\u4e00\u884c\u53ea\u67092\u4e2a\u521d\u503c\uff0c\u6309\u987a\u5e8f\u5206\u522b\u8d4b\u7ed9a[0][0]\u548ca[0][1]\uff1b\u7b2c\u4e8c\u884c\u7684\u521d\u503c4\u8d4b\u7ed9a[1][0]\u3002\u7531\u4e8e\u5b58\u50a8\u7c7b\u578b\u662fstatic\uff0c\u6545\u5176\u5b83\u6570\u7ec4\u5143\u7d20\u7684\u521d\u503c\u4e3a0<\/p>\n
\u6ce8\uff1a\u67d0\u4e9bC\u8bed\u8a00\u7cfb\u7edf\uff08\u5982\uff1aTurbo C\uff09\u4e2d\uff0c\u5b58\u50a8\u7c7b\u578b\u4e0d\u662fstatic\u7684\u53d8\u91cf\u6216\u6570\u7ec4\u7684\u521d\u503c\u4e5f\u662f0\u3002<\/p>\n
\u3000\u3000static int a[2][3]={ 1,2};
\n
\u3000\u3000\u53ea\u67092\u4e2a\u521d\u503c\uff0c\u5373a[0][0]=1\uff0ca[0][1]=2\uff0c\u5176\u4f59\u6570\u7ec4\u5143\u7d20\u7684\u521d\u503c\u5747\u4e3a0\u3002
\n
\u3000\u3000\u2477 \u53ef\u4ee5\u7701\u7565\u7b2c\u4e00\u7ef4\u7684\u5b9a\u4e49\uff0c\u4f46\u4e0d\u80fd\u7701\u7565\u7b2c\u4e8c\u7ef4\u7684\u5b9a\u4e49\u3002\u7cfb\u7edf\u6839\u636e\u521d\u59cb\u5316\u7684\u6570\u636e\u4e2a\u6570\u548c\u7b2c2\u7ef4\u7684\u957f\u5ea6\u53ef\u4ee5\u786e\u5b9a\u7b2c\u4e00\u7ef4\u7684\u957f\u5ea6\u3002
\n
\u3000\u3000int a[ ][3]={ 1,2\uff0c3\uff0c4\uff0c5\uff0c6};
\n
\u3000\u3000a\u6570\u7ec4\u7684\u7b2c\u4e00\u7ef4\u7684\u5b9a\u4e49\u88ab\u7701\u7565\uff0c\u521d\u59cb\u5316\u6570\u636e\u51716\u4e2a\uff0c\u7b2c\u4e8c\u7ef4\u7684\u957f\u5ea6\u4e3a3\uff0c\u5373\u6bcf\u884c3\u4e2a\u6570\uff0c\u6240\u4ee5a\u6570\u7ec4\u7684\u7b2c\u4e00\u7ef4\u662f2\u3002
\n
\u3000\u3000\u4e00\u822c\uff0c\u7701\u7565\u7b2c\u4e00\u7ef4\u7684\u5b9a\u4e49\u65f6\uff0c\u7b2c\u4e00\u7ef4\u7684\u5927\u5c0f\u6309\u5982\u4e0b\u89c4\u5219\u786e\u5b9a\uff1a
\n <\/p>\n
\u3000\u3000\u521d\u503c\u4e2a\u6570\u80fd\u88ab\u7b2c\u4e8c\u7ef4\u6574\u9664\uff0c\u6240\u5f97\u7684\u5546\u5c31\u662f\u7b2c\u4e00\u7ef4\u7684\u5927\u5c0f\uff1b\u82e5\u4e0d\u80fd\u6574\u9664\uff0c\u5219\u7b2c\u4e00\u7ef4\u7684\u5927\u5c0f\u4e3a\u5546\u518d\u52a01\u3002\u4f8b\u5982\uff0cint a[ ][3]={ 1,2\uff0c3\uff0c4};<\/p>\n
\u7b49\u4ef7\u4e8e\uff1aint a[2][3]={ 1,2\uff0c3\uff0c4};<\/p>\n
\u3000\u3000\u82e5\u5206\u884c\u521d\u59cb\u5316\uff0c\u4e5f\u53ef\u4ee5\u7701\u7565\u7b2c\u4e00\u7ef4\u7684\u5b9a\u4e49\u3002\u4e0b\u5217\u7684\u6570\u7ec4\u5b9a\u4e49\u4e2d\u6709\u4e24\u5bf9{ }\uff0c\u5df2\u7ecf\u8868\u793aa\u6570\u7ec4\u6709\u4e24\u884c\u3002
\n
\u3000\u3000static int a[ ][3]={ {1,2},{4}};\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u4e8c\u7ef4\u6570\u7ec4\u521d\u59cb\u5316\u89c4\u5219\u4e8c\u7ef4\u6570\u7ec4\u521d\u59cb\u5316\u7684\u5f62\u5f0f\u4e3a\uff1a\u3000\u3000\u6570\u636e\u7c7b\u578b\u6570\u7ec4\u540d[\u6574\u5e38\u91cf\u8868\u8fbe\u5f0f][\u6574\u5e38\u91cf\u8868\u8fbe\u5f0f]={\u521d\u59cb\u5316\u6570\u636e}\uff1b\u3000\u3000\u5728{}\u4e2d\u7ed9\u51fa...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/326"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=326"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/326\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}