messagebox怎么弹出int型数组
2个回答
2014-01-07
展开全部
不知道你要弹出什么整型数组,我以一个随机产生是个整数的一位数组为例编了一个程序,你照着模仿一下!
Private Sub Form_click()
Dim a(1 To 10) As Integer
Randomize
For i = 1 To 10
a(i) = Int(Rnd * 100) + 1
Next i
If MsgBox("a(i)") Then
For j = 1 To 10
Print Str(a(j)) & " "
Next j
End If
End Sub
Private Sub Form_click()
Dim a(1 To 10) As Integer
Randomize
For i = 1 To 10
a(i) = Int(Rnd * 100) + 1
Next i
If MsgBox("a(i)") Then
For j = 1 To 10
Print Str(a(j)) & " "
Next j
End If
End Sub
2014-01-07
展开全部
int[] array =new int[] { 1,2,3,4,5,6,7,8,9 };
MessageBox.Show(string.Join(",", array.Select(t => t.ToString()).ToArray()));
MessageBox.Show(string.Join(",", array.Select(t => t.ToString()).ToArray()));
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询