展开全部
Private Sub Command1_Click()
Dim a(10) As Integer
Randomize
For i = 1 To 10
a(i) = Int(Rnd * 90) + 10
Print a(i);
Next i
For i = 1 To 9
Print "第" & i & "趟选择排序:";
k = i
For j = i + 1 To 10
If a(j) < a(k) Then k = j
Next j
t = a(i): a(i) = a(k): a(k) = t
Print "【";
For j = 1 To 10
Print a(j);
If j = i Then Print "】";
Next j
Next i
End Sub
Private Sub Command2_Click()
Cls
End Sub
Private Sub Command3_Click()
End
End Sub
追问
哇谢谢你了
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询