{"id":3414,"date":"2018-11-26T09:36:44","date_gmt":"2018-11-26T01:36:44","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=3414"},"modified":"2018-11-26T09:36:44","modified_gmt":"2018-11-26T01:36:44","slug":"%e5%90%83%e5%a4%9a%e4%ba%86%e6%8b%89%e5%b0%b1%e6%98%af%e9%98%9f%e5%88%97%ef%bc%8c%e5%90%83%e5%a4%9a%e4%ba%86%e5%90%90%e5%b0%b1%e6%98%af%e6%a0%88","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=3414","title":{"rendered":"\u5403\u591a\u4e86\u62c9\u5c31\u662f\u961f\u5217\uff0c\u5403\u591a\u4e86\u5410\u5c31\u662f\u6808"},"content":{"rendered":"<p>\n\t\u5403\u591a\u4e86\u62c9\u5c31\u662f\u961f\u5217\uff0c\u5403\u591a\u4e86\u5410\u5c31\u662f\u6808\uff01\u542c\u8d77\u6765\u6bd4\u8f83\u641e\u7b11\uff0c\u4f46\u5b9e\u9645\u4e0a\u6bd4\u55bb\u7684\u8fd8\u662f\u633a\u5f62\u8c61\u7684\u3002\u4eca\u5929\u6211\u4eec\u5148\u6765\u7b80\u5355\u7684\u8bf4\u8bf4\u961f\u5217\u548c\u6808\uff01\n<\/p>\n<p>\n\t\u961f\u5217\u548c\u5806\u6808\u662f\u4e00\u4e2a\u66f4\u9ad8\u5c42\u6b21\u7684\u6982\u5ff5\uff0c\u5176\u5e95\u5c42\u53ef\u4ee5\u662f\u7528\u94fe\u8868\u4e5f\u53ef\u4ee5\u662f\u7528\u6570\u7ec4\u6765\u5b9e\u73b0\u3002\n<\/p>\n<h2>\n\t\u5806\u6808<br \/>\n<\/h2>\n<p>\n\t\u5806\u6808\u5b9e\u73b0\u4e86\u4e00\u79cd\u540e\u8fdb\u5148\u51fa\u7684\u8bed\u4e49 (LIFO) \u3002\u53ef\u4ee5\u4f7f\u7528\u6570\u7ec4\u6216\u8005\u662f\u94fe\u8868\u6765\u5b9e\u73b0\u5b83\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u6808\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/stack-push-pop.gif\" style=\"width: 394px;height: 190px\" \/>\n<\/p>\n<p>\n\t\u5bf9\u4e8e\u5806\u6808\u4e2d\u7684\u6570\u636e\u7684\u6240\u6709\u64cd\u4f5c\u90fd\u662f\u5728\u6808\u7684\u9876\u90e8\u5b8c\u6210\u7684\uff0c\u53ea\u53ef\u4ee5\u67e5\u770b\u6808\u9876\u90e8\u7684\u6570\u636e\uff0c\u53ea\u80fd\u591f\u5411\u6808\u7684\u9876\u90e8\u538b\u5165\u6570\u636e\uff0c\u4e5f\u53ea\u80fd\u4ece\u6808\u7684\u9876\u90e8\u5f39\u51fa\u6570\u636e\u3002\n<\/p>\n<h2>\n\t\u961f\u5217<br \/>\n<\/h2>\n<p>\n\t\u961f\u5217\u5b9e\u73b0\u4e86\u5148\u5165\u5148\u51fa\u7684\u8bed\u4e49 (FIFO) \u3002\u961f\u5217\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6570\u7ec4\u548c\u94fe\u8868\u6765\u5b9e\u73b0\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u961f\u5217\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/fifo-push-pop.gif\" style=\"width: 627px;height: 90px\" \/>\n<\/p>\n<p>\n\t\u961f\u5217\u53ea\u5141\u8bb8\u5728\u961f\u5c3e\u6dfb\u52a0\u6570\u636e\uff0c\u5728\u961f\u5934\u5220\u9664\u6570\u636e\u3002\u4f46\u662f\u53ef\u4ee5\u67e5\u770b\u961f\u5934\u548c\u961f\u5c3e\u7684\u6570\u636e\u3002\u8fd8\u6709\u4e00\u79cd\u662f\u53cc\u7aef\u961f\u5217\uff0c\u5728\u4e24\u7aef\u90fd\u53ef\u4ee5\u63d2\u5165\u548c\u5220\u9664\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u53cc\u7aef\u961f\u5217\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/duilie-push-pop.gif\" style=\"width: 627px;height: 132px\" \/>\n<\/p>\n<h2>\n\t\u6808\u4e0e\u961f\u5217\u7684\u76f8\u540c\u70b9<br \/>\n<\/h2>\n<ol>\n<li>\n\t\t\u90fd\u662f\u7ebf\u6027\u7ed3\u6784\u3002\n\t<\/li>\n<li>\n\t\t\u63d2\u5165\u64cd\u4f5c\u90fd\u662f\u9650\u5b9a\u5728\u8868\u5c3e\u8fdb\u884c\u3002\n\t<\/li>\n<li>\n\t\t\u90fd\u53ef\u4ee5\u901a\u8fc7\u987a\u5e8f\u7ed3\u6784\u548c\u94fe\u5f0f\u7ed3\u6784\u5b9e\u73b0\u3002\u3001\n\t<\/li>\n<li>\n\t\t\u63d2\u5165\u4e0e\u5220\u9664\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u90fd\u662fO\uff081\uff09\uff0c\u5728\u7a7a\u95f4\u590d\u6742\u5ea6\u4e0a\u4e24\u8005\u4e5f\u4e00\u6837\u3002\n\t<\/li>\n<li>\n\t\t\u591a\u94fe\u6808\u548c\u591a\u94fe\u961f\u5217\u7684\u7ba1\u7406\u6a21\u5f0f\u53ef\u4ee5\u76f8\u540c\u3002\n\t<\/li>\n<\/ol>\n<h2>\n\t\u6808\u4e0e\u961f\u5217\u7684\u4e0d\u540c\u70b9<br \/>\n<\/h2>\n<ol>\n<li>\n\t\t\u5220\u9664\u6570\u636e\u5143\u7d20\u7684\u4f4d\u7f6e\u4e0d\u540c\uff0c\u6808\u7684\u5220\u9664\u64cd\u4f5c\u5728\u8868\u5c3e\u8fdb\u884c\uff0c\u961f\u5217\u7684\u5220\u9664\u64cd\u4f5c\u5728\u8868\u5934\u8fdb\u884c\u3002\n\t<\/li>\n<li>\n\t\t\u5e94\u7528\u573a\u666f\u4e0d\u540c\uff1b\u5e38\u89c1\u6808\u7684\u5e94\u7528\u573a\u666f\u5305\u62ec\u62ec\u53f7\u95ee\u9898\u7684\u6c42\u89e3\uff0c\u8868\u8fbe\u5f0f\u7684\u8f6c\u6362\u548c\u6c42\u503c\uff0c\u51fd\u6570\u8c03\u7528\u548c\u9012\u5f52\u5b9e\u73b0\uff0c\u6df1\u5ea6\u4f18\u5148\u641c\u7d22\u904d\u5386\u7b49\uff1b\u5e38\u89c1\u7684\u961f\u5217\u7684\u5e94\u7528\u573a\u666f\u5305\u62ec\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u5404\u79cd\u8d44\u6e90\u7684\u7ba1\u7406\uff0c\u6d88\u606f\u7f13\u51b2\u5668\u7684\u7ba1\u7406\u548c\u5e7f\u5ea6\u4f18\u5148\u641c\u7d22\u904d\u5386\u7b49\u3002\n\t<\/li>\n<li>\n\t\t\u987a\u5e8f\u6808\u80fd\u591f\u5b9e\u73b0\u591a\u6808\u7a7a\u95f4\u5171\u4eab\uff0c\u800c\u987a\u5e8f\u961f\u5217\u4e0d\u80fd\u3002\n\t<\/li>\n<\/ol>\n<p>\n\t\u6808\u7684\u4f7f\u7528\u573a\u666f\u53ef\u4ee5\u53c2\u8003\u65b9\u6cd5\u8c03\u7528\u94fe\uff0cA \u8c03\u7528 B\uff0cB \u8c03\u7528 C\uff0c\u90a3\u4e48 C \u65b9\u6cd5\u5c31\u5728\u6808\u9876\uff0c\u5b83\u9700\u8981\u5148\u7ed3\u675f\u3002\u961f\u5217\u7684\u4f7f\u7528\u573a\u666f\u5c31\u6bd4\u8f83\u591a\u4e86\uff0c\u5404\u79cd\u961f\u5217\u5b9e\u73b0\u7c7b\u4ee5\u53ca\u6211\u4eec\u524d\u9762\u8bb2\u7684\u516c\u5e73\u9501\u3001\u9501\u6c60\u3001\u7b49\u5f85\u6c60\u7b49\u3002\n<\/p>\n<p>\n\t\u5173\u4e8e\u6808\u548c\u961f\u5217\uff0c\u6211\u540e\u9762\u518d\u7ed3\u5408\u5177\u4f53\u7684 Java \u7c7b\u6765\u8bf4\uff01<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=3414\">\u5403\u591a\u4e86\u62c9\u5c31\u662f\u961f\u5217\uff0c\u5403\u591a\u4e86\u5410\u5c31\u662f\u6808<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5403\u591a\u4e86\u62c9\u5c31\u662f\u961f\u5217\uff0c\u5403\u591a\u4e86\u5410\u5c31\u662f\u6808\uff01\u542c\u8d77\u6765\u6bd4\u8f83\u641e\u7b11\uff0c\u4f46\u5b9e\u9645\u4e0a\u6bd4\u55bb\u7684\u8fd8\u662f\u633a\u5f62\u8c61\u7684\u3002\u4eca\u5929\u6211\u4eec\u5148\u6765\u7b80\u5355\u7684\u8bf4\u8bf4\u961f\u5217\u548c\u6808\uff01 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[140,1093,1762,1104,142],"class_list":["post-3414","post","type-post","status-publish","format-standard","hentry","category-java","category-yyzt","tag-queue","tag-1093","tag-1762","tag-1104","tag-142"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3414"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3414\/revisions"}],"predecessor-version":[{"id":3415,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3414\/revisions\/3415"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}