最新下载
热门教程
- 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
相关文章
- 火影忍者怎么获得大招 05-03
- 星际战甲新手什么刀好 05-03
- 文明6秦始皇金字塔怎么加速 05-03
- 全民奇迹2龙骸巨剑怎么获得 05-03
- 星露谷物语鲟鱼怎么获得 05-03
- 长安幻想怎么转职 05-03