太难了,真是太难了
Private Sub Command1_Click()
Font.Size = 30
Dim n As Integer
Dim slerdum(15) As Integer
n = 1
While n <= 15
slerdum(n) = Int(Rnd * 1000)
n = n + 1
Wend
Dim swap As Integer
n = 1
While n <= 14
If slerdum(n) < slerdum(n + 1) Then
swap = slerdum(n)
slerdum(n) = slerdum(n + 1)
slerdum(n + 1) = swap
End If
n = n + 1
Wend
n = 1
While n <= 15
Print slerdum(n)
n = n + 1
Wend
End Sub