谁进来帮我解释一下!初学vb有点不懂!非常感谢!
代码如下Private Sub Command2_Click()
Dim a(1 To 4, 1 To 4) As Integer
Dim i As Integer, j As Integer
For i = 2 To 3
For j = 2 To 3
a(i, j) = (i - 1) * 2 + j
Next j
Next i
Print a(i, j)
End Sub
为啥单击Command2后打印的是0 而不是7(a(3,3))
希望喷油解释一下啊 问题也许比较低级 但对于初学者来说 真的有点难!希望解释一下原理!谢谢!