大家帮忙看一下,我这VB选择法排序怎么错了?For i = 0 To o - 1 min = c(i) n = i For j = i To o - 1 If c(j) < min Then min = c(j) n = j
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 15:35:46
大家帮忙看一下,我这VB选择法排序怎么错了?For i = 0 To o - 1 min = c(i) n = i For j = i To o - 1 If c(j) < min Then min = c(j) n = j
大家帮忙看一下,我这VB选择法排序怎么错了?
For i = 0 To o - 1
min = c(i)
n = i
For j = i To o - 1
If c(j) < min Then
min = c(j)
n = j
End If
Next
c(n) = c(i)
c(i) = min
m = d(i)
d(i) = d(n)
d(n) = m
Next
大家帮忙看一下,我这VB选择法排序怎么错了?For i = 0 To o - 1 min = c(i) n = i For j = i To o - 1 If c(j) < min Then min = c(j) n = j
把你要实现的功能说下.谢谢~!还有你的数组定义拿出来看看.