Private Sub bubble_up(a() As Integer) Dim i As Integer, j As Integer Dim temp As Double Dim m As Integer For i = LBound(a) To UBound(a) - 1 For j = UBound(a) To i + 1 Step -1 If a(j) < a(j - 1) Then temp = a(j) a(j) = a(j - 1) a(j - 1) = temp End If nextj Next i End Sub
by: 发表于:2017-11-27 11:26:19 顶(0) | 踩(0) 回复
??
回复评论