{"id":2974,"date":"2025-11-21T20:36:13","date_gmt":"2025-11-21T12:36:13","guid":{"rendered":"https:\/\/zhenti.52daan.com\/?p=2974"},"modified":"2025-11-21T20:36:13","modified_gmt":"2025-11-21T12:36:13","slug":"%e5%81%87%e5%ae%9a%e6%9c%89%e5%a6%82%e4%b8%8b%e7%9a%84sub%e8%bf%87%e7%a8%8b%ef%bc%9a-sub-funx-as-single-y-as-single-t-x-x-t-y-y-t-mod-y-end-sub-%e5%9c%a8%e7%aa%97%e4%bd%93%e4%b8%8a%e7%94%bb","status":"publish","type":"post","link":"https:\/\/zhenti.52daan.com\/?p=2974","title":{"rendered":"\u5047\u5b9a\u6709\u5982\u4e0b\u7684Sub\u8fc7\u7a0b\uff1a Sub fun(x As Single, y As Single) t = x x = t \/ y y = t Mod y End Sub \u5728\u7a97\u4f53\u4e0a\u753b\u4e00\u4e2a\u547d\u4ee4\u6309\u94ae\uff0c\u7136\u540e\u7f16\u5199\u5982\u4e0b\u4e8b\u4ef6\u8fc7\u7a0b\uff1a Private Sub Command1_Click() Dim a As Single Dim b As Single a = 6 b = 4 fun a, b Print a, b End Sub \u7a0b\u5e8f\u8fd0\u884c\u540e\uff0c\u5355\u51fb\u547d\u4ee4\u6309\u94ae\uff0c\u8f93\u51fa\u7ed3\u679c\u4e3a\uff08 \uff09\u3002 1 1 1.25 4 1.5 2 5 4 A. B. C. D."},"content":{"rendered":"<p>\u5047\u5b9a\u6709\u5982\u4e0b\u7684Sub\u8fc7\u7a0b\uff1a Sub fun(x As Single, y As Single) t = x x = t \/ y y = t Mod y End Sub \u5728\u7a97\u4f53\u4e0a\u753b\u4e00\u4e2a\u547d\u4ee4\u6309\u94ae\uff0c\u7136\u540e\u7f16\u5199\u5982\u4e0b\u4e8b\u4ef6\u8fc7\u7a0b\uff1a Private Sub Command1_Click() Dim a As Single Dim b As Single a = 6 b = 4 fun a, b Print a, b End Sub \u7a0b\u5e8f\u8fd0\u884c\u540e\uff0c\u5355\u51fb\u547d\u4ee4\u6309\u94ae\uff0c\u8f93\u51fa\u7ed3\u679c\u4e3a\uff08 \uff09\u3002 1 1 1.25 4 1.5 2 5 4 A. B. C. D.<\/p>\n<p>\u6b63\u786e\u7b54\u6848\uff1aC<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5047\u5b9a\u6709\u5982\u4e0b\u7684Sub\u8fc7\u7a0b\uff1a Sub&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[106],"class_list":["post-2974","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-visual-basic"],"_links":{"self":[{"href":"https:\/\/zhenti.52daan.com\/index.php?rest_route=\/wp\/v2\/posts\/2974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhenti.52daan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhenti.52daan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhenti.52daan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhenti.52daan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2974"}],"version-history":[{"count":0,"href":"https:\/\/zhenti.52daan.com\/index.php?rest_route=\/wp\/v2\/posts\/2974\/revisions"}],"wp:attachment":[{"href":"https:\/\/zhenti.52daan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhenti.52daan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhenti.52daan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}