{"id":1107,"date":"2021-01-14T22:19:54","date_gmt":"2021-01-14T14:19:54","guid":{"rendered":"http:\/\/admin.lastdream.net\/?p=1107"},"modified":"2021-01-14T22:19:54","modified_gmt":"2021-01-14T14:19:54","slug":"c-erweishuzujichu","status":"publish","type":"post","link":"https:\/\/admin.vsingers.com\/index.php\/2021\/01\/14\/c-erweishuzujichu\/","title":{"rendered":"C# \u4e8c\u7ef4\u6570\u7ec4\u57fa\u7840"},"content":{"rendered":"<h3>\u4e8c\u7ef4\u6570\u7ec4\u4e2d\u7684\u4e00\u884c\u662f\u4e00\u4e2a\u4e00\u7ef4\u6570\u7ec4<\/h3>\n<p>\u7b2c\u4e00\u7eac\u4ee3\u8868\u884c\uff0c\u7b2c\u4e8c\u7eac\u4ee3\u8868\u5217\uff08\u901a\u5e38\uff09<\/p>\n<p>\u5b66\u4e60\u6280\u5de7\uff1a\u5b9e\u9a8c\u4ece\u5c0f\u7684\u5f00\u59cb\uff0c\u719f\u6089\u4ee5\u540e\u5f00\u59cb\u505a<\/p>\n<p>&nbsp;<\/p>\n<h3>\u4e8c\u7ef4\u6570\u7ec4\u7684\u521d\u59cb\u5316\u6784\u9020\uff1a<\/h3>\n<p>int a = new int[5];\/\/\u4e00\u7ef45\u6210\u5458\u6570\u7ec4<\/p>\n<p>int[,] b = new int[5,3]<\/p>\n<p>{<\/p>\n<p>{1,2,3},<\/p>\n<p>{4,5,6},<\/p>\n<p>{7,8,9},<\/p>\n<p>{10,11,12},<\/p>\n<p>{13,14,15}<\/p>\n<p>};<\/p>\n<p>\/\/5\u884c3\u5217\u4e8c\u7ef4\u6570\u7ec4\u521d\u59cb\u5316\u5b8c\u6bd5\uff0c\u7ed3\u6784\u6bd4\u8f83\u7c7b\u4f3cjson<\/p>\n<p>&nbsp;<\/p>\n<h3>\u8f93\u51fa\u4e8c\u7ef4\u6570\u7ec4\uff08\u793a\u4f8b\uff09\uff1a<\/h3>\n<p>for(int row = 0;row &lt; b.length(0);row++) \/\/\u8fd9\u91cc(0)\u4ee3\u8868\u4e8c\u7ef4\u6570\u7ec4\u7684\u884c\uff0c\u53735<\/p>\n<p>{<\/p>\n<p>for(int col = 0;col &lt; b.length(1);col++)<\/p>\n<p>{<\/p>\n<p>console.writeline(&#8220;{0}\\t&#8221;,b[row,col]);\/\/\u8f93\u51fa\u4f4e\u51e0\u884c\u51e0\u5217\u7684\u6570\u7ec4\u503c\uff0c\u5e76tab\u5206\u9694<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<h3>\u53d8\u91cf\u5e38\u7528\u540d\u8868\u793a\u6cd5\uff1a<\/h3>\n<p>row \u884c<\/p>\n<p>col \u5217<\/p>\n<p>&nbsp;<\/p>\n<h3>\u5c5e\u6027\u4e0e\u65b9\u6cd5\u7684\u6982\u5ff5\uff1a<\/h3>\n<p>\u5982\u4e00\u4e2a\u4eba\u4fe1\u606f\uff1a<\/p>\n<p>\u8eab\u4efd\u8bc1\u53f7\u7801&gt;\u5c5e\u6027<\/p>\n<p>\u4f1a\u505a\u996d\u3001\u5199\u4ee3\u7801&gt;\u65b9\u6cd5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e8c\u7ef4\u6570\u7ec4\u4e2d\u7684\u4e00\u884c\u662f\u4e00\u4e2a\u4e00\u7ef4\u6570\u7ec4 \u7b2c\u4e00\u7eac\u4ee3\u8868\u884c\uff0c\u7b2c\u4e8c\u7eac\u4ee3\u8868\u5217\uff08\u901a\u5e38\uff09 \u5b66\u4e60\u6280\u5de7\uff1a\u5b9e\u9a8c\u4ece\u5c0f\u7684\u5f00\u59cb\uff0c\u719f\u6089\u4ee5\u540e\u5f00\u59cb\u505a  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-1107","post","type-post","status-publish","format-standard","hentry","category-c_net"],"_links":{"self":[{"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/posts\/1107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/comments?post=1107"}],"version-history":[{"count":0,"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/posts\/1107\/revisions"}],"wp:attachment":[{"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/media?parent=1107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/categories?post=1107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/tags?post=1107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}