{"id":4564,"date":"2017-04-30T19:44:23","date_gmt":"2017-04-30T11:44:23","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=4564"},"modified":"2017-05-02T10:11:37","modified_gmt":"2017-05-02T02:11:37","slug":"delphi%e4%b8%8b%e5%a4%9a%e7%ba%bf%e7%a8%8b%e7%bc%96%e7%a8%8b%e7%9a%84%e5%87%a0%e4%b8%aa%e6%80%9d%e7%bb%b4%e8%af%af%e5%8c%ba","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=4564","title":{"rendered":"DELPHI\u4e0b\u591a\u7ebf\u7a0b\u7f16\u7a0b\u7684\u51e0\u4e2a\u601d\u7ef4\u8bef\u533a"},"content":{"rendered":"<p>\u6709\u51e0\u4e2a\u7f51\u53cb\u79c1\u4e0b\u95ee\u6211\u4e00\u4e9b\u6709\u5173\u7ebf\u7a0b\u7684\u4e8b\u60c5\u3002\u8fc7\u8282\u5199\u4e2a\u4e1c\u897f\u4e0a\u6765\u5927\u5bb6\u4ea4\u6d41\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u601d\u7ef4\u8bef\u533a1<\/strong><strong>\uff0c\u81ea\u5df1\u65b0\u5efa\u7684THREAD<\/strong><strong>\u662f\u7ebf\u7a0b\uff0c\u81ea\u5df1\u7684\u4e3b\u7a0b\u5e8f\u4e0d\u662f\u7ebf\u7a0b.<\/strong> \u5f88\u591a\u4eba\u5728\u591a\u7ebf\u7a0b\u7f16\u7a0b\u6ca1\u6709\u628a\u4e3b\u7ebf\u7a0b\u4e5f\u5f53\u4f5c\u7ebf\u7a0b\u3002\u5176\u5b9e\u4e3b\u7ebf\u7a0b\u4e5f\u662f\u7ebf\u7a0b\u3002\u770b\u8d77\u6765\u662f\u5e9f\u8bdd\uff0c\u8fd9\u4e2a\u8bdd\u786e\u5b9e\u5f88\u91cd\u8981\uff0c\u8fd9\u4e2a\u5c31\u610f\u5473\u7740\uff0c\u5728DELPHI\u4e2d\uff0c\u4e0d\u5149\u4f60\u5f00\u7684\u7ebf\u7a0b\uff0c\u8fd8\u6709\u4f60\u7684\u4e3b\u7ebf\u7a0b\u6240\u6709\u7684\u5185\u5b58\u5206\u914d\u4e5f\u662f\u4e32\u7684\uff0c\u8fdb\u9501\u6392\u961f\u7684\u3002\u4e3b\u7ebf\u7a0b\u548c\u7ebf\u7a0b\u7684\u533a\u522b<\/p>\n<p>A.\u4e00\u822c\u6765\u8bf4\u4e3b\u7ebf\u7a0b\u7684\u4f18\u5148\u7ea7\u9ad8\u4e86\u70b9\u3002\uff08\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u81ea\u5df1\u8bbe\u7f6e\uff09<\/p>\n<p>B.\u4e3b\u7ebf\u7a0b\u5728WIN\u4e0b\u662f\u5904\u7406APPLICATION\u7684\u6d88\u606f\u3002<\/p>\n<p>\u5176\u4ed6\u57fa\u672c\u4e0e\u4f60\u81ea\u5efa\u7ebf\u7a0b\u65e0\u533a\u522b\u3002<\/p>\n<p>\u6240\u4ee5\u8fd9\u4e00\u70b9\u8fd8\u53ef\u4ee5\u70b9\u7834\u5c0f\u767d\u95ee\u9898\uff0c\u6bd4\u5982\u4e3b\u7ebf\u7a0b\u4e0d\u80fd\u8fdb\u9501\u3002\u5176\u5b9e\u4e3b\u7ebf\u7a0b\u4e5f\u8981\u8fdb\u9501\u7684\u3002\u5173\u952e\u662f\u4e3b\u7ebf\u7a0b\u4e0d\u80fd\u6302\u8d77\u6b7b\u7b49\u3002\u6302\u8d77\u6b7b\u7b49\u5c31\u7528\u6237\u754c\u9762\u5361\u4e86\u6216\u8005\u5047\u6b7b\u4e86\u3002\u6240\u4ee5\u8981\u8fdb\u4ee3\u7801\u4e00\u8fb9\u7b49\uff0c\u4e00\u8fb9\u5207\u6362\u5230\u5176\u4ed6\u4efb\u52a1\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u601d\u7ef4\u8bef\u533a2.<\/strong><strong>\u7ebf\u7a0b\u548c\u9762\u5411\u5bf9\u8c61\u3002<\/strong><\/p>\n<p>C\u7684\u65f6\u5019\u5199\u7ebf\u7a0b\u53cd\u800c\u5f88\u7b80\u5355\u3002\u56e0\u4e3aC\u4e0d\u662f\u9762\u5411\u5bf9\u8c61\u7684\u3002 \u64b8\u4ee3\u7801\u7684\u65f6\u5019\u975e\u5e38\u6e05\u695a\u4ec0\u4e48\u5728\u7ebf\u7a0b\uff0c\u4ec0\u4e48\u5728\u4e3b\u7ebf\u7a0b\uff0c\u56e0\u4e3a\u64b8\u4ee3\u7801\u601d\u7ef4\u548c\u673a\u5668\u8868\u73b0\u4e00\u81f4\u3002\u4f46\u662fDELPHI\u662f\u9762\u5411\u5bf9\u8c61\u7684\u3002\u7ecf\u5e38\u8001\u4f1a\u95ee\u81ea\u5df1\u7c7b\u4f3c\u8fd9\u6837\u7684\u95ee\u9898\uff1a\u8fd9\u4e2a\u5bf9\u8c61\u5728\u4e3b\u7ebf\u7a0b\u8fd8\u662f\u5728\u7ebf\u7a0b\u3002\u8fd9\u4e2aOO\u4e2d\u6bd2\u592a\u6df1\u4e86\uff0c\u8fd9\u4e2a\u95ee\u9898\u6211\u4e5f\u95ee\u8fc7\u3002\u5176\u5b9eDELPHI\u4e5f\u4e0d\u662f\u7edd\u5bf9\u7684\u9762\u5411\u5bf9\u8c61\uff0c\u53ea\u662f\u9762\u5411\u5bf9\u8c61\u7684\u5c01\u88c5\u800c\u5df2\uff0c\u5176\u672c\u8d28\u8fd8\u662f\u6d41\u5f0f\u4ee3\u7801\u8ddfC\u6ca1\u533a\u522b\uff0c\u4e5f\u5c31\u662f\u8ddfOO\u6ca1\u6709\u534a\u6bdb\u5173\u7cfb\u3002<\/p>\n<p>\u90a3\u95ee \u8fd9\u4e2a\u5bf9\u8c61\u5728\u7ebf\u7a0b\u8dd1\u8fd8\u662f\u5728\u4e3b\u7ebf\u7a0b\u8dd1\uff1f \u6211\u53ea\u80fd\u8bf4\uff0c\u6240\u6709\u5bf9\u8c61\u90fd\u5728\u5185\u5b58\uff0c\u81f3\u4e8e\u4f60\u54ea\u91cc\u8dd1\u8981\u770b\u4f60\u7684\u7ebf\u7a0b\u8d70\u4e86\u591a\u5c11\u4ee3\u7801\u3002\u6bd4\u5982<\/p>\n<p>&nbsp;<\/p>\n<p>TAAAA= CLASS;<\/p>\n<p>Public<\/p>\n<p>procedure A;<\/p>\n<p>procedure B;<\/p>\n<p>procedure C;<\/p>\n<p>\uff08\u5047\u8bbeProcedure A,B,C\u76f8\u4e92\u6ca1\u6709\u8d44\u6e90\u51b2\u7a81\u548c\u76f8\u4e92\u8c03\u7528\uff09<\/p>\n<p>APP\u4ee3\u7801\u4f60\u8c03\u7528\u4e86Procedure A. \u5efa\u4e86\u4e00\u4e2a\u7ebf\u7a0b\uff0c\u7ebf\u7a0b\u8c03\u7528Procedure B, \u7ebf\u7a0b\u7ed3\u675f\u3002<\/p>\n<p>\u4e3b\u7ebf\u7a0b\u8dd1\u4e86Procedure A, \u81ea\u5df1\u5efa\u7684\u7ebf\u7a0b\u8dd1\u4e86Procedure B. \u4f46\u662f\u4ed6\u4eec\u90fd\u5c5e\u4e8e\u7c7bTAAAA\u3002<\/p>\n<p>\u6240\u4ee5\u601d\u7ef4\u8981\u6539\u56de\u6765\uff0c\u7ebf\u7a0b\u8ddf\u9762\u5411\u5bf9\u8c61\u6ca1\u6709\u534a\u6bdb\u94b1\u5173\u7cfb\u3002\u4e0d\u8981\u7528\u9762\u5411\u5bf9\u8c61\u7684\u601d\u7ef4\u53bb\u8bbe\u8ba1\u4f60\u7684\u7ebf\u7a0b\u3002\u8fd9\u6837\u4f60\u5c31\u77e5\u9053\u4f60\u7684\u9501\u8be5\u653e\u5728\u54ea\u91cc\u4e86\u3002<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>\u601d\u7ef4\u8bef\u533a3. <\/strong><strong>\u9501\u548c\u65e0\u9501<\/strong><\/p>\n<p><strong>\u00a0<\/strong>\u00a0\u00a0 \u5f88\u591a\u7f16\u7a0b\u4e66\u91cc\u628a\u9501\u8bb2\u6210\u5982\u5395(\u7fa4\u91cc\u6211\u628a\u8fd9\u4e2a\u6bd4\u55bb\u6210\u5077\u4eba\uff0c\u56e0\u4e3a\u5982\u5395\u4e0d\u591f\u6c61\uff0c\u8bb0\u4e0d\u4f4f\uff0c\u5077\u4eba\u591f\u6c61\uff0c\u5bb9\u6613\u8bb0\u4f4f\u3002\uff09\u3002\u4e00\u4e2a\u4eba\u8fdb\u4e86\u5395\u6240\uff0c\u5176\u4ed6\u4eba\u5728\u95e8\u5916\u9762\u7b49\u7740\u3002\u9501\u5c31\u662f\u95e8\uff0c\u4eba\u5c31\u662f\u7ebf\u7a0b\u3002\u8fd9\u6837\u7684\u8bbe\u7f6e\u5c31\u662f\u7ade\u4e89\u673a\u5236\uff0c\u5395\u6240\u5c11\uff0c\u4eba\u591a\u554a\u3002\u5047\u5982\u6ca1\u6709\u7ade\u4e89\u673a\u5236\uff0c\u90a3\u5f53\u7136\u4e0d\u8981\u9501\u4e86\uff0c\u6bcf\u4eba\u53d1\u4e00\u4e2a\u5395\u6240\uff0c\u4eba\u4eba\u90fd\u5e78\u798f\u554a\u3002\u7f16\u7a0b\u4e2d\uff0c\u6bd4\u5982\u56fa\u5b9a\u7684\u914d\u7f6e\u6570\u636e\uff0c\u4f60\u8dd1\u7ebf\u7a0b\u7684\u65f6\u5019\u6bcf\u4e2a\u7ebf\u7a0b\u914d\u4e00\u4e2a\u590d\u672c\u3002\u90a3\u5c31\u4e0d\u8981\u9501\u4e86\u3002<\/p>\n<p>\u9501\u662f\u5f71\u54cd\u4f60\u7684\u7a0b\u5e8f\u6548\u7387\u7684\u3002\u72b9\u5982\u8fd9\u8fb9\u8981\u5c3f\u6025\u4e86\uff0c\u5395\u6240\u91cc\u7684\u4eba\u8fd8\u6ca1\u6709\u51fa\u6765\uff0c\u5fc3\u91ccOS\uff0cTMD\u4e0a\u4e2a\u5395\u6240\u771f\u9ebb\u70e6\u3002 \u4f60\u8981\u964d\u4f4e\u9501\u5728\u7a0b\u5e8f\u91cc\u7684\u5f00\u9500\u3002\u65e0\u975e\u51e0\u4e2a\u6709\u56e0\u7d20\uff1a<\/p>\n<p><strong>A.<\/strong><strong>\u9501\u672c\u8eab\u7684\u5f00\u9500\u3002<\/strong>\uff08\u597d\u6bd4\uff1a\u4e0a\u5395\u6240\u91cc\u9762\u7684\u4eba\u51fa\u6765\uff0c\u5916\u9762\u7684\u4eba\u8fdb\u53bb\u672c\u8eab\u8981\u65f6\u95f4\u7684\uff0c\u8fd9\u4e2a\u5c31\u662f\u9501\u7684\u5f00\u9500&#8211;\u6211\u662f\u4e71\u6bd4\u55bb\u4e86\uff0c\u5176\u5b9e\u4e0d\u662f\u8fd9\u6837\u7684\uff0c\u4f46\u662f\u672c\u8d28\u5dee\u4e0d\u591a\uff0c\u8fd9\u6837\u8bb2\u4fbf\u4e8e\u7406\u89e3\uff09\u3002\u6240\u4ee5\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u5f88\u591a\u9501\u7684\u8d44\u6e90\u548c\u65b9\u5f0f\uff0c\u6240\u8c13\u539f\u5b50\u9501\u3002\u5176\u5b9e\u4e5f\u662f\u9501\u3002<\/p>\n<p><strong>B<\/strong><strong>\uff0c\u7ebf\u7a0b\u7b49\u592a\u4e45\u3002<\/strong><\/p>\n<p>\u72b9\u5982\u4e0a\u5395\u6240\u7b49\u592a\u4e45\uff0c\u591a\u8d39\u52b2\u554a\u3002\u8981\u89e3\u51b3\u4e5f\u5c312\u4e2a\u65b9\u9762\uff0c<\/p>\n<p>B1,\u91cc\u9762\u7684\u4eba\u8e72\u592a\u957f\u65f6\u95f4\u4e86\uff0c\u618b\u6b7b\u4e86\u3002\u6240\u4ee5\u4f60\u8981\u5c3d\u91cf\u4f7f\u4f60\u7684LOCK\u91cc\u9762\u7684\u4efb\u52a1\u51cf\u5c11\u3002\u9632\u6b62\u8e72\u592a\u4e45.<\/p>\n<p>B2,\u7b49\u7684\u4eba\u592a\u591a\u3002\u3002\u6392\u961f\u6392\u5230\u5927\u8857\u4e0a\u4e86\u3002\u6240\u4ee5\u4f60\u8981\u89c4\u5212\u597d\u4f60\u7684\u8d44\u6e90\u3002\u8ba9\u8d44\u6e90\u5206\u7247&#8212;\u8fd9\u4e2a\u505a\u6cd5\u597d\u6bd4\u8bbe\u4e86\u591a\u4e2a\u5395\u6240\u3002\u89e3\u51b3\u65b9\u6848\u8fd8\u6709\u4e00\u4e2a\u5c31\u662f\u7ebf\u7a0b\u6c60\u3002\u5c31\u662f\u51cf\u5c11\u4eba\u3002\u8fd9\u4e2a\u7528\u5982\u5395\u7684\u6bd4\u55bb\u4f30\u8ba1\u66f4\u52a0\u6c61\u3002\u8fd8\u662f\u8868\u8fbe\u51fa\u6765\u4fbf\u4e8e\u7406\u89e3\u3002\u201c<strong>\u72b9\u5982\uff0c\u8bbe\u51e0\u4e2a\u4eba\u628a\u6240\u6709\u4eba\u7684\u5927\u4fbf\u90fd\u62c9\u4e86<\/strong>\u3002\u201d<\/p>\n<p>\u5f88\u591a\u4e8b\uff0c\u9053\u7406\u771f\u7684\u5c31\u8fd9\u4e48\u7b80\u5355\u3002\u8bbe\u8ba1\u7ebf\u7a0b\u6a21\u578b\u7684\u65f6\u5019\u522b\u60f3\u591a\u4e86\u5c31\u884c\u3002\u96be\u5c31\u96be\u5728\u8bbe\u8ba1\u7684\u65f6\u5019\u81ea\u5df1\u5bb9\u6613\u60f3\u591a\uff0c\u60f3\u7740\u60f3\u7740\u5c31\u65e0\u89e3\u4e86\uff0c\u90a3\u662f\u81ea\u5df1\u7ed9\u81ea\u5df1\u7684\u5751\u554a\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u51e0\u4e2a\u7f51\u53cb\u79c1\u4e0b\u95ee\u6211\u4e00\u4e9b\u6709\u5173\u7ebf\u7a0b\u7684\u4e8b\u60c5\u3002\u8fc7 [&hellip;]<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[],"class_list":["post-4564","post","type-post","status-publish","format-standard","hentry","category-delphi"],"views":4357,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4564"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4564\/revisions"}],"predecessor-version":[{"id":4566,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4564\/revisions\/4566"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}