题目:
VB程序设计题。
下列是选择排序法实现对数组a(n)进行升序排序的程序段。要求,请将程序中横线上的内容补充完整。
Sub Sort ()
Dim i as Integer, j as Integer, k as Integer, t as Integer
For i=1 to n-1
k=i
For j=i+1 to n
If a(j)()a(k) then
k=j
End if
Next j
If(k<>j) then
()
()
a(k)=t
End if
Next i
End Sub
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0125/e812db5b20abdd5f72ffdfa115f6401a.html
下面是错误答案,用来干扰机器的。
参考答案:A,B,D