
2008年4月9日 星期三
2008年3月27日 星期四
第四章練習
Private Sub Command10_Click()
Picture1.Scale (-400, 400)-(400, -400)
ret = InputBox("輸入邊數")
R = InputBox("輸入半徑")
Label1.Caption = ret
ang = 2 * 3.1416 / ret
stang = 0
For i = 1 To ret
Picture1.Line (R * Sin(stang), R * Cos(stang))-(R * Sin(stang + ang), R * Cos(stang + ang))
stang = stang + ang Next End Sub
Private Sub Command7_Click()
Picture1.Scale (-400, 400)-(400, -400)
R = Val(Text1.Text)
Picture1.Circle (0, 0), R, vbBlue
End Sub
Picture1.Scale (-400, 400)-(400, -400)
For R = Val(Text1.Text) To Val(Text2.Text) Step Val(Text3.Text) Picture1.Circle (0, 0), R, vbBlue
Next
2008年2月21日 星期四
訂閱:
文章 (Atom)

