{"id":475,"date":"2011-04-16T00:53:11","date_gmt":"2011-04-15T16:53:11","guid":{"rendered":"http:\/\/www.myclass-lin.org\/wordpress\/?p=475"},"modified":"2011-04-16T01:03:22","modified_gmt":"2011-04-15T17:03:22","slug":"%e7%94%a2%e7%94%9f6%e5%80%8b%e4%b8%8d%e9%87%8d%e8%a4%87%e9%9a%a8%e6%a9%9f%e6%95%b4%e6%95%b8","status":"publish","type":"post","link":"https:\/\/www.myclass-lin.org\/wordpress\/archives\/475","title":{"rendered":"\u7522\u751f6\u500b\u4e0d\u91cd\u8907\u96a8\u6a5f\u6574\u6578"},"content":{"rendered":"<p>\u7db2\u8def\u4e0a\u9084\u6709PTT\u4e0a\u770b\u5230\u4e00\u4e9b\u4e0d\u91cd\u8907\u96a8\u6a5f\u6574\u6578\u7684\u5beb\u6cd5\u90fd\u6709\u4e9b\u8907\u96dc\uff0c\u770b\u4e0d\u592a\u61c2\uff0c<br \/>\n\u5f8c\u4f86\u767c\u73fe\u6709\u4e00\u500b\u5beb\u6cd5\u525b\u597d\u770b\u5f97\u61c2\uff0c\u6240\u4ee5\u8a18\u9304\u4e00\u4e0b\uff01<br \/>\n\u53ef\u4ee5\u81ea\u884c\u8f38\u51651?\u67d0\u6578\u9593\uff0c\u7522\u751f6\u500b\u4e0d\u91cd\u8907\u7684\u96a8\u6a5f\u6574\u6578\u3002<br \/>\n<a target=\"_blank\" href=\"http:\/\/www.wretch.cc\/blog\/krisonepiece\/15845226\">\u539f\u6587\u5728\u6b64<\/a>\u3002<\/p>\n<p><!--more--><a target=\"_blank\" href=\"https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/04\/rnd_integer_no_repeat.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/04\/rnd_integer_no_repeat.jpg\" alt=\"\" title=\"rnd_integer_no_repeat\" width=\"500\" height=\"375\" class=\"alignnone size-full wp-image-477\" srcset=\"https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/04\/rnd_integer_no_repeat.jpg 500w, https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/04\/rnd_integer_no_repeat-300x225.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><br \/>\n\u9996\u5148\uff0c\u5148\u5c07\u8868\u55ae\u8a2d\u8a08\u5b8c\u6210\uff0c<br \/>\n1.\u65b0\u589e\u4e00\u500b\u53ef\u4ee5\u81ea\u7531\u8f38\u5165\u7684Textbox\u3002<br \/>\n2.\u65b0\u589e\u4e00\u500bButton\u3002<br \/>\n3.\u65b0\u589e\u8981\u8f38\u51fa\u7522\u751f6\u500b\u4e82\u6578\u7684Label\uff08Label3?Label8\uff09\u3002<br \/>\n[ad#300*250(pic)][ad#300*250(pic)]<\/p>\n<p>\u63a5\u4e0b\u4f86\u5728Form\u4e0a\u4e0b\u6307\u4ee4\uff0c\u5c07\u6240\u6709\u8981\u5448\u73fe\u7684\u4e82\u6578\uff08Label3?Label8\uff09\u8a2d\u5b9a\u70ba\u96b1\u85cf\uff0c<br \/>\n\u7a0b\u5f0f\u78bc\u5982\u4e0b\uff1a<\/p>\n<pre lang=\"vb\" line=\"1\" colla=\"+\">Label3.Text = \"\"\r\n        Label4.Text = \"\"\r\n        Label5.Text = \"\"\r\n        Label6.Text = \"\"\r\n        Label7.Text = \"\"\r\n        Label8.Text = \"\"<\/pre>\n<p>\u6700\u5f8c\u5728\u7522\u751f\u7684button\u4e0a\u4e0b\u6307\u4ee4\uff0c\u7522\u751f6\u500b\u4e0d\u91cd\u8907\u7684\u96a8\u6a5f\u4e82\u6578\u3002<br \/>\n\u7a0b\u5f0f\u78bc\u5982\u4e0b\uff1a<\/p>\n<pre lang=\"vb\" line=\"1\" colla=\"+\">Dim a, i, n, c, b(6) As Integer\r\n        a = Val(TextBox1.Text)\r\n        i = 1\r\n        Randomize()\r\n        If a < 6 Then\r\n            MsgBox(\"\u8acb\u8f38\u51656\u4ee5\u4e0a\u7684\u6578\u5b57\", 16, \"\u932f\u8aa4\")\r\n        Else\r\n            Do While i <= 6\r\n                n = Int(Rnd() * a) + 1\r\n                b(i) = n\r\n                For c = 1 To i - 1\r\n                    If c < i And n = b(c) Then\r\n                        i = i - 1\r\n                    End If\r\n                Next\r\n                i += 1\r\n            Loop\r\n            Label3.Text = b(1)\r\n            Label4.Text = b(2)\r\n            Label5.Text = b(3)\r\n            Label6.Text = b(4)\r\n            Label7.Text = b(5)\r\n            Label8.Text = b(6)\r\n        End If<\/pre>\n<p><a target=\"_blank\" href=\"https:\/\/docs.google.com\/leaf?id=0B4H5esJIJwITMDgyZmQ3MTMtODA4MS00NzE0LTkwNWMtMDNkMjcwMTdiM2M4&#038;sort=name&#038;layout=list&#038;num=50\">\u7bc4\u4f8b\u6a94\u5728\u6b64<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7db2\u8def\u4e0a\u9084\u6709PTT\u4e0a\u770b\u5230\u4e00\u4e9b\u4e0d\u91cd\u8907\u96a8\u6a5f\u6574\u6578\u7684\u5beb\u6cd5\u90fd\u6709\u4e9b\u8907\u96dc\uff0c\u770b\u4e0d\u592a\u61c2\uff0c \u5f8c\u4f86\u767c\u73fe\u6709 &hellip; <a href=\"https:\/\/www.myclass-lin.org\/wordpress\/archives\/475\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-475","post","type-post","status-publish","format-standard","hentry","category-vb"],"_links":{"self":[{"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/posts\/475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/comments?post=475"}],"version-history":[{"count":0,"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/posts\/475\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/media?parent=475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/categories?post=475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/tags?post=475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}