当前位置: > VB 函数 do while ...Loop 与 while .wend 的区别...
题目
VB 函数 do while ...Loop 与 while .wend 的区别
Dim D As Variant
Dim E() As Integer
Do While A1 0
A1 = 0
For i2 = 0 To UBound(D)
If D(i2) > A1 Then
A1 = D(i2)
End If 'D(i2) > A1
Next 'i2 = 0
ReDim Preserve E(i3) As Integer
E(i3) = A1
i3 = i3 + 1
For i2 = 0 To UBound(D)
If D(i2) = A1 Then
D(i2) = 0
End If 'D(i2) > A1
Next 'i2 = 0
Loop
'这是一个排序用的,把数组元素(D)大到小排序去重复的复制到另一个(E).
'问,为什么do while ...Loop 与 while .wend 的输出没有区别?

提问时间:2021-03-04

答案
do while ...loop和while ...wend没区别,完全一样,先判断条件再运行循环体.
do ...loop while就不一样了,先运行再判断
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.