{"id":192722,"date":"2020-11-16T02:09:50","date_gmt":"2020-11-15T18:09:50","guid":{"rendered":"http:\/\/4563.org\/?p=192722"},"modified":"2020-11-16T02:09:50","modified_gmt":"2020-11-15T18:09:50","slug":"%e4%ba%ba%e7%94%9f%e5%a6%82%e6%ad%a4%e8%89%b0%e9%9a%be%ef%bc%8c%e5%b0%a4%e5%85%b6%e6%98%af%e8%b4%9f%e8%b4%a3-legacy-code-2","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=192722","title":{"rendered":"\u4eba\u751f\u5982\u6b64\u8270\u96be\uff0c\u5c24\u5176\u662f\u8d1f\u8d23 Legacy Code. 2"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4eba\u751f\u5982\u6b64\u8270\u96be\uff0c\u5c24\u5176\u662f\u8d1f\u8d23 Legacy Code. 2               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Xuanyian <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e0d\u5230\u4e24\u5e74\u524d\uff0c\u5728\u4e0b\u611f\u6168\uff08\u65e0\u80fd\u72c2\u6012\uff09\u8fc7\u4e00\u4e2a\u548c\u5728\u4e0b\u5dee\u4e0d\u591a\u5927\u7684 C++\u8001\u7a0b\u5e8f\u3002\u603b\u7ed3\u6765\u8bf4\u5c31\u662f\u5e74\u5c11\u8f7b\u72c2\uff0c\u4e0d\u61c2\u8fd9\u79cd\u8001\u78c1\u5668\u8981\u8f7b\u62ff\u8f7b\u653e\uff0c\u7ed3\u679c\u60f9\u51fa\u4e86\u4e00\u5806\u9ebb\u70e6\u8017\u4e86\u5dee\u4e0d\u591a\u4e00\u6574\u5e74\u624d\u89e3\u51b3\u5b8c\u3002<\/p>\n<p>\u524d\u60c5\u4e0d\u518d\u8d58\u8ff0\uff0c\u603b\u4e4b\uff0c\u4eca\u5929\u7684\u4e3b\u89d2\u4f9d\u65e7\u662f\u5b83\u3002\u81ea\u4ece\u4e0a\u6b21\u7684\u6559\u8bad\u540e\uff0c\u5728\u4e0b\u5b66\u4e56\u4e86\uff0c\u6709\u4e8b\u6ca1\u4e8b\u4e0d\u5230\u4e07\u4e0d\u5f97\u5df2\u4ece\u6765\u4e0d\u78b0\u8fd9\u8001\u5bb6\u4f19\uff0c\u751f\u6015\u968f\u624b\u4e00\u70b9\uff0c\u8fd9\u9aa8\u8d28\u758f\u677e\u7684\u8d27\u5c31\u76f4\u5954 ICU \u3002\u53c8\u6dfb\u4e86\u4e0d\u5c11\u81ea\u6d4b\u811a\u672c\uff0c\u7b97\u662f\u628a\u8fd9\u8001\u5bb6\u4f19\u7684\u62d0\u68cd\u5347\u7ea7\u6210\u4e86\u8f6e\u6905\u3002\u4ece\u6b64\u811a\u4e0d\u843d\u5730\uff0c\u6068\u4e0d\u5f97\u5168\u8eab\u4e0a\u4e0b\u7ed9\u8fd9\u8001\u5bb6\u4f19\u6253\u4e0a\u5939\u677f\u3002<\/p>\n<p>\u4f46\u81ea\u53e4\u4eba\u65e0\u5bb3\u864e\u5fc3\uff0c\u864e\u6709\u4f24\u4eba\u610f\u3002\u867d\u5df2\u767d\u53d1\u82cd\u82cd\uff0c\u4f46\u662f\u4ed6\uff0c\u78b0\u74f7\uff0c\u90a3\u662f\u4e13\u4e1a\u7684\u3002\u4f55\u51b5\u6c5f\u6e56\u4e2d\uff0c\u90a3\u9ad8\u624b\uff0c\u603b\u662f\u767d\u53d1\u82cd\u82cd\u7684\u3002<\/p>\n<p>\u6700\u8fd1\uff0c\u79c9\u6301\u540c\u4e00\u516c\u53f8\uff0c\u540c\u4e00\u68a6\u60f3\uff0c\u540c\u4e00\u6761\u51c6\u7684\u4e09\u540c\u539f\u5219\uff0c\u516c\u53f8\u5f00\u59cb\u7edf\u4e00 Infrastructure\uff0c\u5168\u516c\u53f8\u4e0a\u4e0b\u9e21\u98de\u72d7\u8df3\u4e0d\u5fc5\u7ec6\u8bf4\uff0cC++\u8fd9\u8fb9\u66f4\u662f\u91cd\u707e\u533a\uff0c\u6bcf\u5929\u56de\u62a5\u51fa\u6765\u4e86\u95ee\u9898\u90fd\u80fd\u5728\u804a\u5929\u5ba4\u5237\u5c4f\u3002<\/p>\n<p>\u4e0d\u8fc7\u603b\u7b97\u4ee5\u540e\u5404\u79cd\u516c\u53f8\u81ea\u5efa\u7684 lib \u6709\u6807\u51c6\u7248\u672c\u4e86\uff0c\u6709\u4eba\u7ba1\u4e86\u3002<\/p>\n<p>\u5174\u51b2\u51b2\u5730\u5347\u7ea7\u5b8c lib\uff0c\u5f04\u5b8c\u81ea\u6d4b\uff0c\u55ef\uff0c\u6ca1\u5565\u95ee\u9898\uff0c\u5728\u4e0b\u81ea\u4fe1\u5730\u628a\u8001\u5bb6\u4f19\u53d1\u5e03\u4e86\u51fa\u53bb\uff0c\u5168\u7136\u6ca1\u770b\u5230\u4ed6\u5634\u89d2\u9634\u51b7\u5730\u5fae\u7b11\u3002\u98ce\u4e91\u51fa\u6211\u8f88\uff0c\u4e00\u5165\u6c5f\u6e56\u5c81\u6708\u6467\uff0c\u90a3\u8001\u4eba\u518d\u5165\u6c5f\u6e56\uff0c\u4e0b\u7684\u4f9d\u65e7\u662f\u8165\u98ce\u8840\u96e8\u3002<\/p>\n<p>\u90a3\u662f\u5468\u4e00\u7684\u65e9\u4e0a\uff0c\u7761\u773c\u60fa\u5fea\u7684\u5728\u4e0b\u88ab\u4e00\u4e2a\u964c\u751f\u7684\u7535\u8bdd\u5435\u9192\uff0c\u6211\u662f\u8c01\uff0c\u6211\u5728\u90a3\uff0c\u6211\u8981\u5e72\u5565\uff0c\u6b63\u5728\u5728\u4e0b\u601d\u8003\u54f2\u5b66\u7684\u65f6\u5019\uff0c\u5bf9\u65b9\u53fd\u91cc\u5471\u5566\u5730\u5c31\u5f00\u59cb\u8bf4\u4e86\u8d77\u6765\uff0c\u603b\u7ed3\u4e0b\u6765\u5c31\u662f\uff1a\u201c\u4f60\u4eec\u7ec4\u7684\u4efb\u52a1\uff0c\u8d85\u65f6\u4e86\u3002\u201d<\/p>\n<p>\u5728\u4e0b\u8d76\u7d27\u68c0\u67e5\u4e86\u4e0b\uff0c\u544a\u77e5\u5bf9\u65b9\uff0c\u6ca1\u6709\u554a\uff0c\u597d\u597d\u7684\u554a\u3002\u7ed3\u679c\u5bf9\u65b9\u81ea\u4fe1\u5730\u8bf4\uff1a\u201c\u4f60\u4eec\u539f\u5148\u4efb\u52a1\u53ea\u9700\u8981\u4e24\u5c0f\u65f6\uff0c\u73b0\u5728\u8981\u56db\u4e2a\u5c0f\u65f6\u4e86\uff0c\u867d\u7136\u4f60\u4eec\u90a3\u8fb9\u6ca1\u4e8b\uff0c\u4f46\u662f\u4e0d\u597d\u610f\u601d\uff0c\u6211\u4eec\u7684\u4efb\u52a1\u8981\u7b49\u4f60\u4eec\u7684\u6267\u884c\u5b8c\u624d\u80fd\u505a\uff0c\u52a0\u4e86\u4e24\u4e2a\u5c0f\u65f6\uff0c\u6211\u4eec\u7684\u65f6\u95f4\u5c31\u4e0d\u591f\u4e86\uff0c\u6240\u4ee5\u4f60\u4eec\u8d85\u65f6\u4e86\u3002\u201d<\/p>\n<p>\u5728\u4e0b\u6ca1\u6709\u53bb\u60f3\u5230\u5e95\u5bf9\u65b9\u7684\u903b\u8f91\u6709\u95ee\u9898\u8fd8\u662f\u6211\u7684\u8111\u5b50\u6709\u95ee\u9898\uff0c\u4e5f\u6ca1\u56de\u5fc6\u81ea\u5df1\u8fd9\u8fb9\u4ec0\u4e48\u65f6\u5019\u7b54\u5e94\u8fc7\u8fd9\u79cd\u4f9d\u8d56\u5173\u7cfb\uff0c\u6253\u5f00\u7535\u8111\uff0c\u9ed8\u9ed8\u5730\u67e5\u4e86\u4e0b\u5bf9\u65b9\u7ec4\u5927\u8001\u677f\u7684\u884c\u653f\u7ea7\u522b\u3002\u770b\u5230\u5bf9\u65b9\u90a3 title \u548c\u7167\u7247\u4e0a\u81ea\u4fe1\u7684\u5fae\u7b11\uff0c\u5728\u4e0b\u9759\u4e86\u4e00\u79d2\uff0c\u7136\u540e\u56de\u4e86\u4e00\u53e5\uff1a\u201c\u8001\u54e5\uff0c\u653e\u5fc3\uff0c\u90fd\u662f\u6211\u4eec\u7684\u9519\uff0c\u9a6c\u4e0a\u5e2e\u60a8\u89e3\u51b3\u3002\u201d<\/p>\n<p>\u56de\u6eda\u4e4b\u540e\u4fbf\u662f\u67e5\u51fa\u539f\u56e0\uff0c\u8fd9\u70b9\u5f88\u4e0d\u5bb9\u6613\uff0c\u5149\u662f\u626f\u76ae\u5c31\u626f\u4e86\u597d\u51e0\u5468\u3002 \u6700\u540e\u53d1\u73b0\u662f\u4e00\u4e2a lib \u4e2d\u7684 Utility Function \u7684\u95ee\u9898\uff0c\u8fd9\u4e2a API \u7684\u5904\u7406\u901f\u5ea6\u83ab\u540d\u5176\u5999\u7684\u6162\u4e86\u4e00\u500d\u4ee5\u4e0a\u3002\u6253\u5f00\u4ee3\u7801\u4e00\u770b\uff0c\u55ef\uff0c\u5728\u4e0b\u4e0d\u62bd\u70df\uff0c\u53fc\u7740\u4e00\u6839\u7b14\u60f3\u4e86\u597d\u4e45\u9759\u9759\uff0c\u55ef\uff0c16000+\u884c\u7684 Utility Class\uff0c\u770b\u6765\u5728\u4e0b\u8fd8\u662f\u592a\u5e74\u8f7b\uff0c\u628a\u8fd9\u6c5f\u6e56\u4e0a\u7684\u9ad8\u624b\u770b\u7684\u592a\u4f4e\u4e86\u3002<\/p>\n<p>\u6700\u540e\u5bf9\u6bd4\u4e0b\u7248\u672c\uff0c\u53d1\u73b0\u8fd9 lib \u6709\u4e24\u4e2a\u7248\u672c\uff0c\u4e00\u4e2a\u662f\u4e00\u4e2a\u5c0f\u90e8\u95e8\u7684\u81ea\u7528\u7248\uff0c\u4e00\u4e2a\u662f\u4e24\u4e09\u5e74\u524d\u5c31\u6ca1\u5728\u7ba1\u7684\u4e00\u4e2a\u8001\u7248\uff0c\u8fd9\u6b21\u7edf\u4e00\u5e93\u3002\u56e0\u4e3a\u91cd\u540d\u7684\u5173\u7cfb\uff0c\u8001\u7248\u5df2\u7ecf\u5f7b\u5e95\u88ab\u57cb\u5230\u4e86\u9ec4\u571f\u91cc\uff0c\u800c\u90a3\u90e8\u95e8\u81ea\u7528\u7248\uff0c\u5c31\u8fd9\u6837\u88ab\u5802\u800c\u7687\u4e4b\u5730\u6254\u5230\u4e86\u516c\u7528\u5e93\u91cc\uff0c\u6ca1\u6709\u901a\u77e5\uff0c\u6ca1\u6709\u8bf4\u660e\uff0c\u66f4\u6ca1\u6709\u4efb\u4f55\u6d4b\u8bd5\u3002<\/p>\n<p>\u770b\u5230\u8fd9\u91cc\uff0c\u5728\u4e0b\u7b11\u4e86\uff0c\u867d\u7136\u4e0d\u662f\u6b66\u5f53\u6d3e\u51fa\u8eab\uff0c\u4f46\u5728\u8fd9\u6c5f\u6e56\u91cc\u6df7\u4e45\u4e86\uff0c\u592a\u6781\u8fd8\u662f\u80fd\u6253\u5f97\u597d\u7684\u3002 \u4e00\u5c01\u6d0b\u6d0b\u6d12\u6d12\u5374\u534a\u70b9\u95ee\u9898\u4e5f\u89e3\u51b3\u4e0d\u4e86\u7684\u90ae\u4ef6\u53d1\u51fa\u53bb\u540e\uff0c\u5728\u4e0b\u8f6c\u8eab\u56de\u5230\u4e86\u5e8a\u4e0a\uff0c\u6709\u4eba\u7684\u5730\u65b9\u5c31\u6709\u6c5f\u6e56\uff0c\u4e5f\u5c31\u53ea\u6709\u68a6\u91cc\uff0c\u6e56\u5fc3\u5c9b\u4e0a\u59d1\u5a18\u7684\u7b11\u8138\u6bd4\u90a3\u6843\u82b1\u8fd8\u5a07\u8273\uff0c\u7af9\u53f6\u9752\u7684\u6e05\u9999\u80fd\u7f20\u7740\u7b1b\u97f3\u9189\u4f60\u4e09\u5929\uff0c\u90a3\u91cc\uff0c\u6709\u4eba\u4ed7\u5251\u9ad8\u6b4c\uff0c\u5374\u6ca1\u6709\u6c5f\u6e56\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4171292\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : allan888 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u633a\u771f\u5b9e\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171293\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chotow <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u6587\u7b14\uff0c\u5728\u4e0b\u65e0\u80fd\u72c2\u8d5e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171294\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hardwork <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fc7\u4e8e\u771f\u5b9e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171295\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SuperManNoPain <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             real\uff0c\u4e0d\u5199\u5c0f\u8bf4\u53ef\u60dc\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171296\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cyssxt <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             666                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171297\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vcode <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u610f\u51fa\u4e66\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171298\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : impl <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u597d\u73a9\u5417\uff0cc++                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171299\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : paulee <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5feb\u8fdb\u5230\u51b3\u6218\u5149\u660e\u9876                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171300\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jakarta <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0b\u6b21\u8bfa\u5956\u6ca1\u4f60\u6211\u627e\u8bc4\u59d4\u4f1a\u8bf4\u7406                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171301\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Wincer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171302\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rioshikelong121 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u6587\u7b14\u54ea\u91cc\u597d\u4e86\uff1f \u8fde\u8bdd\u90fd\u8bb2\u4e0d\u660e\u767d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4171303\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kevinjaz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u6587\u7b14\u5199\u4ee3\u7801\u6d6a\u8d39\u624d\u534e\u4e86\uff0c\u5e73\u65f6\u5e94\u8be5\u5199\u77ed\u7bc7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4eba\u751f\u5982\u6b64\u8270\u96be\uff0c\u5c24\u5176\u662f\u8d1f\u8d23 Lega&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/192722"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192722"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/192722\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192722"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}