{"id":2339,"date":"2019-04-15T08:15:46","date_gmt":"2019-04-15T08:15:46","guid":{"rendered":""},"modified":"2019-04-15T16:16:06","modified_gmt":"2019-04-15T08:16:06","slug":"51%e5%8d%95%e7%89%87%e6%9c%ba%e8%a1%a8%e8%be%be%e5%bc%8f%e8%af%ad%e5%8f%a5%e7%9a%84%e7%94%a8%e6%b3%95%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2339","title":{"rendered":"51\u5355\u7247\u673a\u8868\u8fbe\u5f0f\u8bed\u53e5\u7684\u7528\u6cd5\u89e3\u6790"},"content":{"rendered":"

\n\t\u8868\u8fbe\u5f0f\u8bed\u53e5\u662f\u6700\u57fa\u672c\u7684\u4e00\u79cd\u8bed\u53e5\u3002\u4e0d\u540c\u7684\u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00\u90fd\u4f1a\u6709\u4e0d\u4e00\u6837\u7684\u8868\u8fbe\u5f0f\u8bed\u53e5\uff0c\u5982VB\u5c31\u662f\u5728\u8868\u8fbe\u5f0f\u540e\u9762\u52a0\u5165\u56de\u8f66\u5c31\u6784\u6210\u4e86VB\u7684\u8868\u8fbe\u5f0f\u8bed\u53e5\uff0c\u800c\u572851\u5355\u7247\u673a<\/u>\u7684C\u8bed\u8a00\u4e2d\u5219\u662f\u52a0\u5165\u5206\u53f7“;”\u6784\u6210\u8868\u8fbe\u5f0f\u8bed\u53e5\u3002\u4e3e\u4f8b\u5982\u4e0b\uff1a<\/p>\n

\n\tb = b * 10;<\/p>\n

\n\t <\/div>\n

\n\tCount++;<\/p>\n

\n\tX = A;Y = B;<\/p>\n

\n\tPage = \uff08a+b\uff09\/a-1;<\/p>\n

\n\t\u4ee5\u4e0a\u7684\u90fd\u662f\u5408\u6cd5\u7684\u8868\u8fbe\u5f0f\u8bed\u53e5\u3002\u5728\u6211\u6536\u5230\u7684\u4e00\u4e9b\u7f51\u53cb\u7684Emai<\/u>l\u4e2d\uff0c\u53d1\u73b0\u5f88\u591a\u521d\u5b66\u7684\u670b\u53cb\u5f80\u5f80\u5728\u7f16\u5199\u8c03\u8bd5\u7a0b\u5e8f\u65f6\u5ffd\u7565\u4e86\u5206\u53f7“;”\uff0c\u9020\u6210\u7a0b\u5e8f\u4e0d\u6cd5\u88ab\u6b63\u5e38\u7684\u7f16\u8bd1\u3002\u6211\u4e2a\u4eba\u7684\u7ecf\u9a8c\u662f\u5728\u9047\u5230\u7f16\u8bd1\u9519\u8bef\u65f6\u5148\u8bed\u6cd5\u662f\u5426\u6709\u8bef\uff0c\u8fd9\u5728\u521d\u5b66\u65f6\u5f80\u5f80\u4f1a\u56e0\u5728\u7a0b\u5e8f\u4e2d\u52a0\u5165\u4e86\u5168\u89d2\u7b26\u53f7\u3001\u8fd0\u7b97\u7b26\u6253\u9519\u6f0f\u6389\u6216\u6ca1\u6709\u5728\u540e\u9762\u52a0“;”\u3002<\/p>\n

\n\t\u5728C\u8bed\u8a00\u4e2d\u6709\u4e00\u4e2a\u7279\u6b8a\u7684\u8868\u8fbe\u5f0f\u8bed\u53e5\uff0c\u79f0\u4e3a\u7a7a\u8bed\u53e5\uff0c\u5b83\u4ec5\u4ec5\u662f\u7531\u4e00\u4e2a\u5206\u53f7“;”\u7ec4\u6210\u3002\u6709\u65f6\u5019\u4e3a\u4e86\u4f7f\u8bed\u6cd5\u6b63\u786e\uff0c\u90a3\u4e48\u5c31\u8981\u6c42\u6709\u4e00\u4e2a\u8bed\u53e5\uff0c\u4f46\u8fd9\u4e2a\u8bed\u53e5\u53c8\u6ca1\u6709\u5b9e\u9645\u7684\u8fd0\u884c\u6548\u679c\u90a3\u4e48\u8fd9\u65f6\u5c31\u8981\u6709\u4e00\u4e2a\u7a7a\u8bed\u53e5\u3002\u8bf4\u8d77\u6765\u5c31\u50cf\u5927\u5bb6\u5728\u665a\u81ea\u4fee\u7684\u65f6\u5019\u7528\u4e66\u5305\u5360\u4f4d\u4e00\u6837\uff0c\u5475\u5475\u3002<\/p>\n

\n\t\u7a7a\u8bed\u53e5\u901a\u5e38\u7528\u4f1a\u4ee5\u4e0b\u4e24\u79cd\u7528\u6cd5\u3002<\/p>\n

\n\t\uff081\uff09while\uff0cfor\u6784\u6210\u7684\u5faa\u73af\u8bed\u53e5\u540e\u9762\u52a0\u4e00\u4e2a\u5206\u53f7\uff0c\u5f62\u6210\u4e00\u4e2a\u4e0d\u6267\u884c\u5176\u5b83\u64cd\u4f5c\u7684\u7a7a\u5faa\u73af\u4f53\u3002\u6211\u4f1a\u4f1a\u5e38\u5e38\u7528\u5b83\u6765\u5199\u7b49\u5f85\u4e8b\u4ef6\u53d1\u751f\u7684\u7a0b\u5e8f\u3002\u5927\u5bb6\u8981\u6ce8\u610f\u7684\u662f“;”\u53f7\u4f5c\u4e3a\u7a7a\u8bed\u53e5\u4f7f\u7528\u65f6\uff0c\u8981\u4e0e\u8bed\u53e5\u4e2d\u6709\u6548\u7ec4\u6210\u90e8\u5206\u7684\u5206\u53f7\u76f8\u533a\u5206\uff0c\u5982 for \uff08;a\u300a50000;a++\uff09;\u7b2c\u4e00\u4e2a\u5206\u53f7\u4e5f\u5e94\u8be5\u7b97\u662f\u7a7a\u8bed\u53e5\uff0c\u5b83\u4f1a\u4f7fa\u8d4b\u503c\u4e3a0\uff08\u4f46\u8981\u6ce8\u610f\u7684\u662f\u5982\u7a0b\u5e8f\u524d\u6709a\u503c\uff0c\u5219a\u7684\u521d\u503c\u4e3aa\u7684\u5f53\u524d\u503c\uff09\uff0c\u6700\u540e\u4e00\u4e2a\u5206\u53f7\u5219\u4f7f\u6574\u4e2a\u8bed\u53e5\u884c\u6210\u4e00\u4e2a\u7a7a\u5faa\u73af\u3002\u90a3\u4e48for \uff08;a\u300a50000;a++\uff09;\u5c31\u76f8\u5f53\u4e8efor \uff08a=0;a\u300a50000;a++\uff09;\u6211\u4e2a\u4eba\u4e60\u60ef\u662f\u5199\u540e\u9762\u7684\u5199\u6cd5\uff0c\u8fd9\u6837\u80fd\u4f7f\u4eba\u66f4\u5bb9\u6613\u8bfb\u660e\u767d\u3002<\/p>\n

\n\t\uff082\uff09\u5728\u7a0b\u5e8f\u4e2d\u4e3a\u6709\u5173\u8bed\u53e5\u63d0\u4f9b\u6807\u53f7\uff0c\u6807\u8bb0\u7a0b\u5e8f\u6267\u884c\u7684\u4f4d\u7f6e\uff0c\u4f7f\u76f8\u5173\u8bed\u53e5\u80fd\u8df3\u8f6c\u5230\u8981\u6267\u884c\u7684\u4f4d\u7f6e\u3002\u8fd9\u4f1a\u7528\u5728goto\u8bed\u53e5\u4e2d\u3002<\/p>\n

\n\t\u4e0b\u9762\u7684\u793a\u4f8b\u7a0b\u5e8f\u662f\u7b80\u5355\u8bf4\u660ewhile\u7a7a\u8bed\u53e5\u7684\u7528\u6cd5\u3002\u786c\u4ef6\u7684\u529f\u80fd\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u5728P3.7\u4e0a\u63a5\u4e00\u4e2a\u5f00\u5173\uff0c\u5f53\u5f00\u5173\u6309\u4e0b\u65f6P1\u4e0a\u7684\u706f\u4f1a\u5168\u4eae\u8d77\u6765\u3002\u5f53\u7136\u5b9e\u9645\u5e94\u7528\u4e2d\u6309\u952e\u7684\u529f\u80fd\u5b9e\u73b0\u5e76\u6ca1\u6709\u8fd9\u4e48\u7684\u7b80\u5355\uff0c\u5f80\u5f80\u8fd8\u8981\u8fdb\u884c\u9632\u6296\u52a8\u5904\u7406\u7b49\u3002<\/p>\n

\n\t\u5148\u5728\u6211\u4eec\u7684\u5b9e\u9a8c\u677f\u4e0a\u52a0\u4e00\u4e2a\u6309\u952e\u3002\u7535\u8def<\/u>\u56fe\u5982\u56fe8\uff0d1\u3002<\/p>\n

\n\t\"51\u5355\u7247\u673a\u8868\u8fbe\u5f0f\u8bed\u53e5\u7684\u7528\u6cd5\u89e3\u6790\"<\/p>\n

\n\t\u56fe8-1 \u52a0\u4e86\u6309\u952e\u7684\u5b9e\u9a8c\u7535\u8def\u56fe<\/p>\n

\n\t\u7a0b\u5e8f\u5982\u4e0b\uff1a<\/p>\n

\n\t#include<\/p>\n

\n\tvoid main\uff08void\uff09<\/p>\n

\n\t{<\/p>\n

\n\tunsigned int a;<\/p>\n

\n\tdo<\/p>\n

\n\t{<\/p>\n

\n\tP1 = 0xFF; \/\/\u5173\u95edP1\u4e0a\u7684LED<\/p>\n

\n\twhile\uff08P3_7\uff09; \/\/\u7a7a\u8bed\u53e5\uff0c\u7b49\u5f85P3_7\u6309\u4e0b\u4e3a\u4f4e\u7535\u5e73\uff0c\u4f4e\u7535\u5e73\u65f6\u6267\u884c\u4e0b\u9762\u7684\u8bed\u53e5<\/p>\n

\n\tP1 = 0; \/\/\u70b9\u4eaeLED<\/p>\n

\n\tfor\uff08;a\u300a60000;a++\uff09; \/\/\u8fd9\u4e5f\u662f\u7a7a\u8bed\u53e5\u7684\u7528\u6cd5\uff0c\u6ce8\u610fa\u7684\u521d\u503c\u4e3a\u5f53\u524d\u503c<\/p>\n

\n\t} \/\/\u8fd9\u6837\u7b2c\u4e00\u6b21\u6309\u4e0b\u65f6\u4f1a\u6709\u4e00\u5ef6\u65f6\u70b9\u4eae\u4e00\u6bb5\u65f6\u95f4\uff0c\u4ee5\u540e\u6309\u591a\u4e45\u5c31\u4eae\u591a\u4e45<\/p>\n

\n\twhile\uff081\uff09; \/\/\u70b9\u4eae\u4e00\u6bb5\u65f6\u95f4\u540e\u5173\u95ed\u518d\u6b21\u5224\u65adP3_7\uff0c\u5982\u6b64\u5faa\u73af<\/p>\n

\n\t}<\/p>\n","protected":false},"excerpt":{"rendered":"

\u8868\u8fbe\u5f0f\u8bed\u53e5\u662f\u6700\u57fa\u672c\u7684\u4e00\u79cd\u8bed\u53e5\u3002\u4e0d\u540c\u7684\u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00\u90fd\u4f1a\u6709\u4e0d\u4e00\u6837\u7684\u8868\u8fbe\u5f0f\u8bed\u53e5\uff0c\u5982VB\u5c31\u662f\u5728\u8868\u8fbe\u5f0f\u540e\u9762\u52a0\u5165\u56de\u8f66\u5c31\u6784\u6210\u4e86VB\u7684\u8868\u8fbe\u5f0f\u8bed\u53e5\uff0c\u800c\u572851 \u5355\u7247\u673a \u7684C\u8bed\u8a00\u4e2d\u5219\u662f\u52a0\u5165\u5206\u53f7;\u6784\u6210<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2339"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2339"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2339\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2339"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}