Private Sub Command1_Click()
Cls
Font.Size = 30
Dim n As Integer
Dim sierdum(15) As Integer
n = 1
While n <= 15
sierdum(n) = Int(Rnd * 1000)
n = n + 1
Wend
Dim swap As Integer
n = 1
While n <= 14
If sierdum(n) < sierdum(n + 1) Then
swap = sierdum(n)
sierdum(n) = sierdum(n + 1)
sierdum(n + 1) = swap
End If
n = n + 1
Wend
n = 1
While n <= 15
Print sierdum(n)
n = n + 1
Wend
End Sub
vb什么时候我才能真正弄懂你啊!!!
Cls
Font.Size = 30
Dim n As Integer
Dim sierdum(15) As Integer
n = 1
While n <= 15
sierdum(n) = Int(Rnd * 1000)
n = n + 1
Wend
Dim swap As Integer
n = 1
While n <= 14
If sierdum(n) < sierdum(n + 1) Then
swap = sierdum(n)
sierdum(n) = sierdum(n + 1)
sierdum(n + 1) = swap
End If
n = n + 1
Wend
n = 1
While n <= 15
Print sierdum(n)
n = n + 1
Wend
End Sub
vb什么时候我才能真正弄懂你啊!!!