萌新想问下, 我的代码,,哪里错了
Option Base 1Private Sub guanghua1()
Dim x1!, y1!, x2%, y2!, a As Variant, j%, b%(42), i%
a = Array(86, 87,86, 82, 67, 61, 59, 86, 77, 76, 99, 108, 169, _
151, 243, 274, 347, 417, 547, 735, 814, 820, 1051, 1091, 1142, _
1127, 1012, 940, 810, 705, 593, 431, 346, 239, 192, 130, 95, 53, 32, 14, 11, 7)
Picture1.Cls
Picture1.DrawStyle = 0
x1 = 200: y1 = Picture1.ScaleHeight - 200
x2 = Picture1.ScaleWidth - 200: y2 = 200
Picture1.Line (x1, y1)-(x2, y1) 'x
Picture1.Line (x1, y2)-(x1, y1) 'y
For j = 1 To 42
b(j) = 129 + i
Next j
For i = 1 To 42
Picture1.PSet (b(i), a(i)), vbRed
Next i
顺便在问一下 ,图片框里给定的坐标系上打出 b(i),a(i) 绘出函数图像啊!。。。。啊啊啊 啊啊想了好久,,,
[此贴子已经被作者于2017-3-17 14:45编辑过]