{"id":12122,"date":"2018-11-28T00:00:00","date_gmt":"2018-11-27T16:00:00","guid":{"rendered":"https:\/\/fgchen.com\/wpedu2\/2018\/11\/28\/c-%e5%a4%9a%e7%b6%ad%e9%99%a3%e5%88%97%ef%bc%9a%e8%a6%8f%e5%89%87%e8%88%87%e4%b8%8d%e8%a6%8f%e5%89%87%e7%9a%84%e5%9e%8b%e5%bc%8f\/"},"modified":"2026-03-30T14:41:36","modified_gmt":"2026-03-30T06:41:36","slug":"c-%e5%a4%9a%e7%b6%ad%e9%99%a3%e5%88%97%ef%bc%9a%e8%a6%8f%e5%89%87%e8%88%87%e4%b8%8d%e8%a6%8f%e5%89%87%e7%9a%84%e5%9e%8b%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/fgchen.com\/wpedu\/2018\/11\/c-%e5%a4%9a%e7%b6%ad%e9%99%a3%e5%88%97%ef%bc%9a%e8%a6%8f%e5%89%87%e8%88%87%e4%b8%8d%e8%a6%8f%e5%89%87%e7%9a%84%e5%9e%8b%e5%bc%8f\/","title":{"rendered":"C#-\u591a\u7dad\u9663\u5217\uff1a\u898f\u5247\u8207\u4e0d\u898f\u5247\u7684\u578b\u5f0f"},"content":{"rendered":"<h3>\u898f\u5247\uff1a<\/h3>\n\n<pre>\n  int[, ,] A = { {{2,3}, {52,41}, {37,6}},\n                 {{8,4}, {5,4}, {17,26}},\n                 {{52,30}, {85,24}, {57,6}} };\n Console.WriteLine(\"A[0,1,1] = {0}\", A[0, 1, 1]);\n Console.WriteLine(\"A[0,1,1] = {0}\", A[0, 1, 1]); }\n<\/pre>\n\n<h3>\u4e0d\u898f\u5247\uff1a<\/h3>\n\n<pre>int[][][] A = new int[2][][];\nA[0] = new int[2][];\nA[1] = new int[1][];\nA[0][0] = new int[] { 3, 4, 5, 7 };\nA[0][1] = new int[] { 2, 4 };\nA[1][0] = new int[] { 4, 5, 7 };\nConsole.WriteLine(\"A[0][1][0] = {0}\", A[0][1][0]);\nConsole.WriteLine(\"A[0][1][1] = {0}\", A[0][1][1]);\nConsole.WriteLine(\"A[0][1][2] = {0}\", A[0][1][2]);\n\/\/2\u30014\u30010\u3001\u767c\u751f\u57f7\u884c\u6642\u671f\u7684\u4f8b\u5916\u932f\u8aa4 Array index out of bound\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>\u898f\u5247\uff1a int[, ,] A = { {{2,3}, {52,41}, {37, &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[266],"tags":[],"class_list":["post-12122","post","type-post","status-publish","format-standard","hentry","category-266"],"_links":{"self":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/12122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/comments?post=12122"}],"version-history":[{"count":1,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/12122\/revisions"}],"predecessor-version":[{"id":13283,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/12122\/revisions\/13283"}],"wp:attachment":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/media?parent=12122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/categories?post=12122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/tags?post=12122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}