REM SETO <=== 氏名を入力(もちろん漢字でも良い) REM **** GURAFU ***** Private Sub Form_Load() Visible = True AutoRedraw = True Dim X As Single Dim Y As Double Scale (-8, 8)-(8, -8) Line (-8, 0)-(8, 0): Line (0, 8)-(0, -8) <=== X座標、Y座標を引く For X = -8 To 8 Step 0.01 Y = KANSU(X) <=== Y=X2となる PSet (X, Y), QBColor(0) Next X End Sub Function KANSU(X As Single) As Double KANSU = X * X End Function |
作業
ポイント
練習