{"id":552,"date":"2024-02-04T14:58:24","date_gmt":"2024-02-04T06:58:24","guid":{"rendered":"https:\/\/www.ientertech.com\/blog\/?p=552"},"modified":"2024-02-04T14:58:24","modified_gmt":"2024-02-04T06:58:24","slug":"lazarus%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.ienter.com.cn\/blog\/2024\/02\/lazarus%e8%bf%87%e7%a8%8b.html","title":{"rendered":"Lazarus\u8fc7\u7a0b"},"content":{"rendered":"<p>1. \u8fc7\u7a0b\u5c31\u662f\u5b50\u7a0b\u5e8f\uff0c\u505a\u6210\u5b50\u7a0b\u5e8f\u65b9\u4fbf\u91cd\u590d\u8c03\u7528\uff0c\u8c03\u7528\u65f6\u4f7f\u7528\u8fc7\u7a0b\u540d\u5c31\u53ef\u4ee5\u3002<br \/>\n\u8fc7\u7a0b\u4e0e\u51fd\u6570\u662f\u6709\u533a\u522b\u7684\uff0c\u8fc7\u7a0b\u6ca1\u6709\u8fd4\u56de\u503c\uff0c\u51fd\u6570\u6709\u8fd4\u56de\u503c<br \/>\n\u8fc7\u7a0b\u5b9a\u4e49\u683c\u5f0f\uff1a<br \/>\nprocedure Name;<br \/>\nconst<br \/>\n  (* \u5b9a\u4e49\u5e38\u91cf *)<br \/>\nvar<br \/>\n  (* \u5b9a\u4e49\u53d8\u91cf *)<br \/>\nbegin<br \/>\n  (* \u8bed\u53e5\u4f53 *)<br \/>\nend;<\/p>\n<p>2.\u4f20\u9001\u53c2\u6570\uff0c\u683c\u5f0f\u5982\u4e0b\uff1a<br \/>\nprocedure Name (a, b : integer; c, d : real);<br \/>\nbegin<br \/>\n  a := 10;<br \/>\n  b := 2;<br \/>\n  writeln (a, b, c, d)<br \/>\nend;<br \/>\n\/\/a\u3001b\u4e24\u4e2a\u6574\u578b\u53c2\u6570\uff0cc\u3001d\u4e24\u4e2a\u5b9e\u6570\u53c2\u6570\uff1b\u591a\u4e2a\u53c2\u6570\u95f4\u7528\u5206\u53f7\u5206\u9694\uff1b<\/p>\n<p>\u4f20\u9012\u53c2\u6570\u7684\u53e6\u4e00\u79cd\u65b9\u5f0f\u662f\u6309\u5f15\u7528\u4f20\u9012\uff08\u6309\u5730\u5740\u4f20\u9012\uff09\uff0c\u6309\u5730\u5740\u4f20\u9012\u53c2\u6570\u65f6\uff0c\u628a\u5b9e\u53c2\u53d8\u91cf\u7684\u5730\u5740\u4f20\u9001\u7ed9\u88ab\u8c03\u7528\u8fc7\u7a0b\uff0c\u5f62\u53c2\u548c\u5b9e\u53c2\u5171\u7528\u5185\u5b58\u7684\u540c\u4e00\u5730\u5740\u3002\u5728\u88ab\u8c03\u7528\u8fc7\u7a0b\u4e2d\uff0c\u5f62\u53c2\u7684\u503c\u4e00\u65e6\u6539\u53d8\uff0c\u76f8\u5e94\u5b9e\u53c2\u7684\u503c\u4e5f\u8ddf\u7740\u6539\u53d8\u3002<br \/>\n\u901a\u8fc7\u5728\u53c2\u6570\u7ec4\u524d\u52a0VAR\u5173\u952e\u5b57\uff0c\u5b9e\u73b0\u6309\u5730\u5740\u53c2\u6570\u4f20\u9012\uff1a<br \/>\nprocedure Name (a, b : integer; VAR c, d : integer);<br \/>\nbegin<br \/>\n  c := 3;<br \/>\n  a := 5<br \/>\nend;<br \/>\nbegin<br \/>\n  alpha := 1;<br \/>\n  gamma := 50;<br \/>\n  delta := 30;<br \/>\n  Name (alpha, 2, gamma, delta);<br \/>\nend.<br \/>\n\/\/....<br \/>\n\u7a0b\u5e8f\u8fd0\u884c\u540e\uff0cgamma\u7684\u503c\u662f3\uff0c\u56e0\u4e3ac\u662f\u6309\u5f15\u7528\u4f20\u9012\u8fc7\u6765\u7684\u53c2\u6570\uff1balpha\u7684\u503c\u662f1\uff0c\u56e0\u4e3a\u5b83\u662f\u6309\u503c\u4f20\u9012\u8fc7\u6765\u7684\u53c2\u6570\uff0c\u770b\u8d77\u6765\u6709\u70b9\u6df7\u4e71\u3002<br \/>\n\u6309\u503c\u4f20\u9012\u53c2\u6570\uff0c\u4f1a\u590d\u5236\u4e00\u4efd\u4f20\u9012\u8fc7\u6765\u7684\u503c\uff0c\u4f9b\u8fc7\u7a0b\u4f7f\u7528\u3002\u4f5c\u7528\u57df\u53ea\u5728\u8fc7\u7a0b\u4e2d\u3002<br \/>\n\u6309\u5730\u5740\u4f20\u9012\u53c2\u6570\uff0c\u4f1a\u4f7f\u7528\u540c\u4e00\u53d8\u91cf\u503c\uff0c\u76f8\u5f53\u4e8e\u5efa\u7acb\u6620\u5c04\u5728\u540c\u4e00\u5185\u5b58\u5730\u5740\u3002\u8d4b\u503c\u64cd\u4f5c\u4f1a\u5f71\u54cd\u5230\u5916\u90e8\u5bf9\u5e94\u53d8\u91cf\u3002<br \/>\n\u6309\u53e5\u8bdd\u8bf4\uff1a \u6309\u503c\u4f20\u9012\u53c2\u6570\uff0c\u662f\u5355\u5411\u7684\uff1a\u4e3b\u7a0b\u5e8f\u81f3\u8fc7\u7a0b\u3002 \u6309\u5730\u5740\u4f20\u9012\u53c2\u6570\uff0c\u662f\u53cc\u5411\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u8fc7\u7a0b\u5c31\u662f\u5b50\u7a0b\u5e8f\uff0c\u505a\u6210\u5b50\u7a0b...<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[64],"class_list":["post-552","post","type-post","status-publish","format-standard","hentry","category-develop","tag-lazarus"],"_links":{"self":[{"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/posts\/552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/comments?post=552"}],"version-history":[{"count":2,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":554,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/posts\/552\/revisions\/554"}],"wp:attachment":[{"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/media?parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/categories?post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/tags?post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}