{"id":677,"date":"2020-12-05T00:16:47","date_gmt":"2020-12-04T16:16:47","guid":{"rendered":"http:\/\/admin.lastdream.net\/?p=677"},"modified":"2020-12-05T00:16:47","modified_gmt":"2020-12-04T16:16:47","slug":"2020-12-4-cshuzujichubiji","status":"publish","type":"post","link":"https:\/\/admin.vsingers.com\/index.php\/2020\/12\/05\/2020-12-4-cshuzujichubiji\/","title":{"rendered":"2020.12.4 C#\u6570\u7ec4\u57fa\u7840\u7b14\u8bb0"},"content":{"rendered":"<h3>\u6570\u7ec4\u5b9a\u4e49<\/h3>\n<p>\u7c7b\u578b[] \u6570\u7ec4\u540d;\/\/\u5143\u7d20\u7c7b\u578b[\u79e9]\u00a0\u53d8\u91cf\u540d\u79f0<\/p>\n<p>\u987a\u5e8f\uff1a<\/p>\n<p>int[] a;\/\/1.\u5b9a\u4e49\u6570\u7ec4\uff08\u5e76\u6ca1\u6709\u521b\u5efa\u51fa\u6765\uff09<\/p>\n<p>a = new int[5];\/\/2.\u5206\u914d\u6570\u7ec4\u7a7a\u95f4 \u6ce8\uff1a\u8fd9\u91cc[5]\u662f\u5b9a\u4e49\u6570\u91cf\uff0c5\u4e2a\u7a7a\u95f4<\/p>\n<p>\/\/3.\u8bbf\u95ee\uff08\u8bfb-\u5199\uff09\u6570\u7ec4\u5143\u7d20<\/p>\n<p>Console.writeline(a[0]);\/\/\u8fd9\u91cc[0]\u662f\u5185\u5b58\u6570\u7ec4\u5b9e\u9645\u4e0b\u6807<\/p>\n<p>Console.writeline(a[1]);<\/p>\n<p><a href=\"http:\/\/admin.lastdream.net\/wp-content\/uploads\/2020\/12\/QQ\u6d4f\u89c8\u5668\u622a\u56fe20201204160456.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-678\" src=\"http:\/\/admin.lastdream.net\/wp-content\/uploads\/2020\/12\/QQ\u6d4f\u89c8\u5668\u622a\u56fe20201204160456.png\" alt=\"\" width=\"755\" height=\"561\" \/><\/a><\/p>\n<p>\u6570\u7ec4\u4e0b\u6807\u8d8a\u4f4d\u3001\u4e0d\u5b58\u5728\u7684\u4f4d\u8f93\u51fa\uff1a<\/p>\n<p><a href=\"http:\/\/admin.lastdream.net\/wp-content\/uploads\/2020\/12\/QQ\u6d4f\u89c8\u5668\u622a\u56fe20201204160607.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-679\" src=\"http:\/\/admin.lastdream.net\/wp-content\/uploads\/2020\/12\/QQ\u6d4f\u89c8\u5668\u622a\u56fe20201204160607.png\" alt=\"\" width=\"1763\" height=\"757\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>\u6570\u7ec4\u5b9a\u4e49-\u5176\u4ed6\u7c7b\u578b<\/h3>\n<p>bool[] a;<\/p>\n<p>string[] a;<\/p>\n<p>&nbsp;<\/p>\n<h3>\u6570\u7ec4\u5b9a\u4e49-\u66f4\u7b80\u5355\u65b9\u5f0f\uff1a<\/h3>\n<p>int[5]{1,2,3,4,5};<\/p>\n<p>\u6216<\/p>\n<p>long[] = {0,1,2,3};<\/p>\n<p>&nbsp;<\/p>\n<h3>\u540e\u5b9a\u4e49<\/h3>\n<p>int[] a;<\/p>\n<p>a = new int[5];\/\/\u540e\u5b9a\u4e49<\/p>\n<p>&nbsp;<\/p>\n<h3>\u53d6\u6570\u7ec4\u957f\u5ea6\/\u6570\u91cf<\/h3>\n<p>Console.writeline(a.length);\/\/\u5982\uff1aa[5]\u53d6\u51fa5<\/p>\n<p>&nbsp;<\/p>\n<h3>\u6570\u7ec4\u76f4\u63a5\u8d4b\u503c<\/h3>\n<p>a[0] = 1;\/\/\u76f4\u63a5\u8d4b\u503c\uff08\u8fd9\u91cc\u6574\u6570int\u578b\uff09<\/p>\n<p>a[1] = 2;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-680\" src=\"http:\/\/admin.lastdream.net\/wp-content\/uploads\/2020\/12\/QQ\u6d4f\u89c8\u5668\u622a\u56fe20201204160818.png\" alt=\"\" width=\"1557\" height=\"712\" \/><\/p>\n<h3>\u8bbf\u95ee\u4efb\u610f\u957f\u5ea6\u7684\u6570\u7ec4\uff08\u57fa\u7840\u5e38\u7528\u91cd\u70b9\uff09<\/h3>\n<p>for(int i = 0;i &lt; a.length;i++)\/\/\u5faa\u73af\u6570\u7ec4\u4efb\u610f\u957f\u5ea6\/\u6570\u91cf<\/p>\n<p>{<\/p>\n<p>Console.write(a[i]);\/\/\u5faa\u73af\u8f93\u51fa<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u7ec4\u5b9a\u4e49 \u7c7b\u578b[] \u6570\u7ec4\u540d;\/\/\u5143\u7d20\u7c7b\u578b[\u79e9]\u00a0\u53d8\u91cf\u540d\u79f0 \u987a\u5e8f\uff1a int[] a;\/\/1.\u5b9a\u4e49\u6570\u7ec4\uff08\u5e76\u6ca1\u6709\u521b\u5efa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":678,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-677","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c_net"],"_links":{"self":[{"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/posts\/677","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=677"}],"version-history":[{"count":0,"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"wp:attachment":[{"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/admin.vsingers.com\/index.php\/wp-json\/wp\/v2\/tags?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}