• 2021-04-14
    冒泡排序是经典的循环结构处理案例,下面是一个冒泡排程序:
    请补充下划线的内容j :
    Dim I, J, AA(9) As Short
    Dim Temp As Short
    For I = 0 To 9
    AA(I) = InputBox("请输入第" & I & "数", "输入窗口")
    Next
    For I = 1 To 8
    For J = I + 1 To 9
    If AA(I) > AA(J) Then
    Temp = AA(I)
    _______ '交换1
    AA(J) = Temp
    End If
    Next
    Next
    ....