最新下载
热门教程
- 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
相关文章
- 三角洲行动夜视仪怎么开-夜视仪开关方法 07-12
- 原神玛薇卡双玛爆发队怎么打 玛薇卡配队大全一览 07-12
- 高考的朋友圈文案 07-12
- 幻兽帕鲁吹雪狐出没地点 帕鲁吹雪狐捕捉位置介绍 07-12
- 分析师称柴犬币价格将暴涨1,529%,SHIB季仍处早期阶段 07-12
- 无畏契约源能行动零怎么玩 零实战教学攻略 07-12