Private Sub Command1_Click() Dim a() As Integer, i As Integer, j As Integer ReDim a(1 To 3, 1 To 3)
2个回答
展开全部
Private Sub Command1_Click()
Dim a() As Integer, i As Integer, j As Integer
ReDim a(1 To 3, 1 To 3)
For i = 1 To 3
For j = 1 To 3
a(i, j) = Int(Rnd * 100 + 1)
Picture1.Print Right(" " & a(i, j), 4);
Next
Picture1.Print
Next
End Sub
Dim a() As Integer, i As Integer, j As Integer
ReDim a(1 To 3, 1 To 3)
For i = 1 To 3
For j = 1 To 3
a(i, j) = Int(Rnd * 100 + 1)
Picture1.Print Right(" " & a(i, j), 4);
Next
Picture1.Print
Next
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
代码不全啊
追问
Private Sub Command1_Click()
Dim a() As Integer, i As Integer, j As Integer
ReDim a(1 To 3, 1 To 3)
For i = 1 To 3
For j = 1 To 3
a(i, j) = Int(Rnd * 100 + 1)
Picture1.Print a(i, j)
Next
Picture1.Print
Next
End Sub
恩哪里有错误啊
追答
是打印的问题,不是赋值的问题,这样试试
Private Sub Command1_Click()
Randomize
Picture1.Cls
Picture1.CurrentY = 200
x = ""
Dim a() As Integer, i As Integer, j As Integer
ReDim a(1 To 3, 1 To 3)
For i = 1 To 3
For j = 1 To 3
a(i, j) = Int(Rnd * 100 + 1)
x = x & " " & a(i, j)
Next
Picture1.Print x
x = ""
Next
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询