{"id":22,"date":"2006-04-01T07:54:47","date_gmt":"2006-04-01T07:54:47","guid":{"rendered":"http:\/\/blog.jason695.idv.tw:81\/wordpress\/?p=22"},"modified":"2006-04-01T07:54:47","modified_gmt":"2006-04-01T07:54:47","slug":"%e9%a1%af%e7%a4%ba011235813","status":"publish","type":"post","link":"https:\/\/jason695.why3s.tw\/wordpress\/2006\/04\/01\/%e9%a1%af%e7%a4%ba011235813\/","title":{"rendered":"\u986f\u793a0,1,1,2,3,5,8,13&#8230;.."},"content":{"rendered":"<p>\u9019\u662f\u6211\u53bb\u9762\u8a66\u6642\u7684\u8003\u984c,<\/p>\n<p>\u7576\u6642\u7b28\u7b28\u7684,\u4e00\u76f4\u60f3\u4e0d\u51fa\u4f86<\/p>\n<p>(\u5728\u6b64\u611f\u8b1d\u5efa\u5b89,\u5d07\u5fb7\u53ca86\u7684\u5e6b\u5fd9)<\/p>\n<p>VB\u8a9e\u6cd5\uff1a<\/p>\n<p>        Dim x, y, z, n As Integer<br \/>\n        x = 0<br \/>\n        y = 0<br \/>\n        z = 0<\/p>\n<p>        For n = 10 To 0 Step -1<br \/>\n            Console.WriteLine(y)<br \/>\n            z = x + y<br \/>\n            If z = 0 Then z += 1<br \/>\n            x = y<br \/>\n            y = z<br \/>\n        Next<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Java\uff1a<\/p>\n<p>int x = 0,y = 0,z = 0;<br \/>\nint size = 10;<br \/>\nwhile((size&#8211;)>= 0){<br \/>\n    System.out.println ;<br \/>\n    z = x+y;<br \/>\n    if(z == 0)++z;<br \/>\n    x = y;<br \/>\n    y = z;<br \/>\n}<\/p>\n<p>\u65b0\u589e\u56de\u61c9<br \/>\n\u4e0a\u5348 11:32  |  \u6c38\u4e45\u9023\u7d50 | \u5f15\u7528\u901a\u544a (0) | \u767c\u4f48\u81f3\u60a8\u7684\u90e8\u843d\u683c | CODING <\/p>\n<p>\u6c38\u4e45\u9023\u7d50  \u95dc\u9589 <\/p>\n<p>http:\/\/spaces.msn.com\/jason695\/blog\/cns!1BF4A629EA6C6E8E!1196.entry <\/p>\n<p>\u5f9e i=i++; \u8ac7\u7a0b\u5f0f\u5e2b\u5bb9\u6613\u72af\u7684\u932f\uff01 <\/p>\n<p>\u8f49\u8cbc\u81ea\ufe5d\u5de5\u7a0b\u5e2b\u7684\u5bb6\ufe5e <\/p>\n<p>code:&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\ni=0;<br \/>\ni=i++;<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u9019\u6a23\u7684\u7a0b\u5f0f\uff0c\u6700\u5f8c i \u7684\u503c\u6703\u662f\u591a\u5c11\uff1f0 \u9084\u662f 1 \u6216\u5176\u5b83\u503c\uff1f<br \/>\n\u6211\u5728\u7db2\u8def\u4e0a\u770b\u904e\u5e7e\u500b\u985e\u4f3c\u7684\u554f\u984c\uff0c\u56de\u8986\u7684\u7b54\u6848\u4e5f\u662f\u83ab\u8877\u4e00\u662f\u3002<br \/>\n\u5c0d\u5927\u90e8\u4efd\u7684 C\/C++ Compiler\u6e2c\u8a66\u7684\u7d50\u679c\u662f 1\uff0c<br \/>\n\u6709\u4eba\u628a\u5b83\u62ff\u5230 java \u4e0a\u6e2c\u8a66\uff0c\u767c\u73fe\u7d50\u679c\u662f 0 \u3002<br \/>\n\u4f46 C\/C++ \u548c java \u5c0d\u9019\u6a23\u8868\u793a\u5f0f\u7684\u8a08\u7b97\u898f\u5247\u662f\u4e00\u6a23\u7684\u554a\uff01<br \/>\n\u662fjava\u4e0d\u597d\uff1f\u9084\u662f C\/C++ \u932f\u4e86\uff1f\u4e8b\u5be6\u4e0a\uff0c\u90fd\u4e0d\u662f\uff0c<br \/>\n\u662f\u7a0b\u5f0f\u5beb\u5f97\u6709\u554f\u984c\uff01 <\/p>\n<p>ANSI C\/C++ \u904b\u7b97\u5f0f(expression)\u6709\u4e00\u500b\u4f46\u66f8\uff1a<br \/>\n\u5982\u679c\u4e00\u500b\u5de6\u503c(l-value)\u5728\u904b\u7b97\u5f0f\u4e2d\u88ab\u6539\u8b8a\u4e86\u5169\u6b21\u4ee5\u4e0a\uff0c\u9664\u975e\u904b\u7b97\u5b50<br \/>\n\u80fd\u4fdd\u8b49\u5176\u8a08\u7b97\u6b21\u5e8f\uff0c\u5426\u5247\u904b\u7b97\u5f0f\u7684\u7d50\u679c\u662f\u672a\u5b9a\u7fa9\u7684 <\/p>\n<p>\u5f88\u660e\u986f\u7684 i \u5728\u904b\u7b97\u5f0f\u4e2d\u88ab\u6539\u8b8a\u4e86\u5169\u6b21\uff0c\u6240\u4ee5\uff1a<br \/>\n\u904b\u7b97\u5f8c i \u7684\u7d50\u679c\u5728ANSI C\/C++\u7684\u898f\u683c\u662f\u672a\u5b9a\u7fa9\u7684\uff0c\u5b83\u4f9dcompiler \u6240\u7528\u7684\u904b<br \/>\n\u7b97\u5f0f\u6f14\u7b97\u6cd5\u4e0d\u540c\u800c\u6709\u4e0d\u540c\u7684\u7d50\u679c\uff0c\u7528\u4f60\u624b\u4e0a\u7684C++ Compiler\uff0ci\u7684\u7d50\u679c\u53ef\u80fd<br \/>\n\u662f0\u6216\u662f1\u751a\u81f3\u662f\u5176\u5b83\u7684\u503c\uff0c\u4f46\u4e0d\u8868\u793a\u5176\u5b83\u5bb6\u7684C++compiler \u6703\u6709\u4e00\u6a23\u7684\u7d50<br \/>\n\u679c\uff1b \u751a\u81f3\u4f60\u624b\u4e0aC++\u7684\u4e0b\u4e00\u500b\u7248\u672c\u90fd\u4e0d\u4fdd\u8b49\u6703\u548c\u73fe\u5728\u4e00\u6a23\u3002\u56e0\u70ba\u5b83\u5011\u90fd\u672a\u9055<br \/>\n\u53cdANSI \u7684\u6cd5\u5f8b\uff01 <\/p>\n<p>\u5f88\u591a\u7a0b\u5f0f\u54e1\u4e26\u4e0d\u719f\u8b80\u7a0b\u5f0f\u8a9e\u8a00\u7684\u7d30\u7bc0\u800c\u5bb9\u6613\u72af\u4e0b\u9019\u6a23\u7684\u932f\uff0c\u539f\u4f86\u8dd1\u5f97\u597d\u597d\u7684<br \/>\n\u7a0b\u5f0f\u5728compiler\u63db\u4e0a\u65b0\u7248\u672c\u5f8c\u51fa\u73fe\u4e86\u554f\u984c\u3002\u901a\u5e38\u76f4\u89ba\u7684\u6703\u53bb\u602a&#8221;\u65b0\u7248\u672c&#8221;\u7684<br \/>\ncompiler\u6709bug\uff01\u4f46\u5341\u6709\u516b\u4e5d\u554f\u984c\u662f\u51fa\u5728\u81ea\u5df1\u7684\u7a0b\u5f0f\u3002 <\/p>\n<p>\u201d\u4e00\u500b\u5de6\u503c(l-value)\u5728\u904b\u7b97\u5f0f\u4e2d\u88ab\u6539\u8b8a\u4e86\u5169\u6b21\u4ee5\u4e0a\uff0c\u9664\u975e\u904b\u7b97\u5b50 \u80fd\u4fdd\u8b49<br \/>\n\u5176\u8a08\u7b97\u6b21\u5e8f\uff0c\u5426\u5247\u904b\u7b97\u5f0f\u7684\u7d50\u679c\u662f\u672a\u5b9a\u7fa9\u7684\u201d<br \/>\n\u9019\u5728C\/C++\u539f\u59cb\u7684\u5b9a\u7fa9\u662f\u9019\u6a23\u7684\uff1a<br \/>\n\u4e00\u500b\u904b\u7b97\u5f0f\u4e2d\u82e5\u542b\u6709\u5b50\u904b\u7b97\u5f0f\uff0c\u5b50\u904b\u7b97\u5f0f\u7684\u8a08\u503c\u6b21\u5e8f\u662f\u672a\u5b9a\u7fa9\u3002<br \/>\n(\u672a\u5b9a\u7fa9\u7684\u610f\u601d\u662fANSI \u672a\u898f\u7bc4\uff0c\u7de8\u8b6f\u5668\u53ef\u81ea\u884c\u4f9d\u6f14\u7b97\u6cd5\u4e4b\u5dee\u7570\u800c\u4fbf\u5b9c\u884c\u4e8b)<br \/>\n\u5c0d i=i++; \u9019\u500b\u904b\u7b97\u5f0f\u4f86\u8aaa\u5b83\u5206\u6210<br \/>\ni=i;\/\/<---\u4e3b\u904b\u7b97\u5f0f \ni=i+1;\/\/<---\u5b50\u904b\u7b97\u5f0f \n\u5169\u500b\u904b\u7b97\u5f0f \n\u56e0\u70ba\u5b50\u904b\u7b97\u5f0f(i=i+1)\u8a08\u503c\u6b21\u5e8f\u672a\u5b9a\u7fa9\uff0c\u6240\u4ee5\u4e3b\u904b\u7b97\u5f0f\u7684\u53f3\u503c i \u5230\u5e95\u662f\u65b0\u503c\u6216 \n\u820a\u503c\u4fbf\u7121\u6cd5\u78ba\u5b9a\uff0c\u6240\u4ee5\u6700\u5f8c\u6307\u6d3e\u5230i\u7684\u503c\u4fbf\u672a\u5b9a\u7fa9\u3002 \n\u90a3\u9ebc\u4ec0\u9ebc\u904b\u7b97\u5b50\u53ef\u4ee5\u4fdd\u8b49\u5b50\u904b\u7b97\u5f0f\u7684\u8a08\u503c\u6b21\u5e8f\uff1f\u5c31\u662f\u201d\u5faa\u5e8f\u201d\u904b\u7b97\u5b50:\u9017\u865f (,) \n\u50cf\u9019\u6a23\u7684\u5f0f\u5b50\u662f\u6b63\u78ba\u7684\u904b\u7b97\u5f0f\uff1a \nj=i++, i=j+2; \n\u5faa\u5e8f\u904b\u7b97\u5b50\u4fdd\u8b49\u5176\u5de6\u908a\u6703\u5148\u65bc\u53f3\u908a\u8a08\u503c\u3002 \n\n\u6ce8\u610f\u5230\u5728C\/C++\u88e1\u53ea\u6709\u904b\u7b97\u5f0f\u4e2d\u7684\u9017\u865f\u662f\u5faa\u5e8f\u904b\u7b97\u5b50\uff0c\u4e0d\u662f\u6240\u6709\u7684\u9017\u865f\u90fd \n\u662f\u5faa\u5e8f\u904b\u7b97\u5b50\u3002 \n\u4f8b\u5982\u547c\u53eb\u51fd\u5f0f\uff1a \nFuncCall(i, j*i++); \n\u9019\u7a0b\u7684\u51fd\u5f0f\u7684\u547c\u53eb\u662f\u932f\u7684\uff0c\u5169\u500b\u5f15\u6578\u4e2d\u9593\u7684\u9017\u865f\u662f\u201d\u5206\u9694\u7b26\u865f\u201d\u4e0d\u662f\u201d\u5faa\u5e8f \n\u904b\u7b97\u5b50\u201d\u3002C\/C++\u4e5f\u4e0d\u4fdd\u8b49\u5f15\u6578\u7684\u8a08\u503c\u6b21\u5e8f\uff0c\u7d50\u679c\u662f\u7b2c\u4e00\u500b\u5f15\u6578\u503c\u662f\u4e0d\u78ba\u5b9a\u7684\u3002  \n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9019\u662f\u6211\u53bb\u9762\u8a66\u6642\u7684\u8003\u984c, \u7576\u6642\u7b28\u7b28\u7684,\u4e00\u76f4\u60f3\u4e0d\u51fa\u4f86 (\u5728\u6b64\u611f\u8b1d\u5efa\u5b89,\u5d07\u5fb7\u53ca86\u7684\u5e6b\u5fd9) VB\u8a9e\u6cd5\uff1a Dim x, &hellip; <a href=\"https:\/\/jason695.why3s.tw\/wordpress\/2006\/04\/01\/%e9%a1%af%e7%a4%ba011235813\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587 <span class=\"screen-reader-text\">\u986f\u793a0,1,1,2,3,5,8,13&#8230;..<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-29","no-featured-image"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}