最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
vb.net 数据排序倒序代码
时间:2022-06-25 05:34:18 编辑:袖梨 来源:一聚教程网
vb.net 数据排序倒序代码
imports system
public class mainclass
shared sub main()
dim myarray as [string]( ) = {"w", "i", "a", "t"}console.writeline("display myarray...")
displayarray(myarray)console.writeline("reverse and display myarray...")
array.reverse(myarray)
displayarray(myarray)dim myotherarray as [string]( ) = _
{"e", "l", "s", "t", "o", "b", "f", "v"}console.writeline("display myotherarray...")
displayarray(myotherarray)console.writeline("sort and display myotherarray...")
array.sort(myotherarray)
displayarray(myotherarray)end sub
public shared sub displayarray(byval thearray( ) as object)
dim obj as object
for each obj in thearray
console.writeline("value: {0}", obj)
next obj
console.writeline(controlchars.lf)
end sub 'displayarrayend class
相关文章
- 崩坏星穹铁道娜塔莎如何培养 12-22
- 塞尔达无双封印战记最佳增强补给材料一览 增强补给材料图鉴 12-22
- 塞尔达无双封印战记最佳战斗补给材料一览 战斗补给材料图鉴 12-22
- 阴阳师天剑韧心鬼切有什么技能 12-22
- 塞尔达无双封印战记最佳支援补给材料一览 支援补给材料图鉴 12-22
- 崩坏星穹铁道米沙怎么养成 12-22