VB中怎么给数组赋值
Fori=1To3Forj=1To3d(i,j)=Array(1,2,3,1,2,3,1,2,3)NextNext这样给二维数组赋值怎么老不对...
For i = 1 To 3
For j = 1 To 3
d(i, j) = Array(1, 2, 3, 1, 2, 3, 1, 2, 3)
Next
Next
这样给二维数组赋值怎么老不对 展开
For j = 1 To 3
d(i, j) = Array(1, 2, 3, 1, 2, 3, 1, 2, 3)
Next
Next
这样给二维数组赋值怎么老不对 展开
2个回答
展开全部
Private Sub Command1_Click()
Dim d
d = Array(Array(1, 2, 3), Array(4, 5, 6), Array(7, 8, 9))
Dim i As Integer
Dim j As Integer
For i = 0 To 2
For j = 0 To 2
Print d(i)(j)
Next j
Next i
End Sub
Dim d
d = Array(Array(1, 2, 3), Array(4, 5, 6), Array(7, 8, 9))
Dim i As Integer
Dim j As Integer
For i = 0 To 2
For j = 0 To 2
Print d(i)(j)
Next j
Next i
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询