①.、vb.net的
数组定义与变量定义差不多.可以用
dim
来定义
比如:
a(100)
as
integer.
也可以不定义下标
在程序中
用
redim
来定义.
如:
a()
integer
'
a(100)
={1,
①.、int类型数组转换为Integer类型的数组.
你可以用结构数组的,如下:
...
Private Structure test
Dim name As String
Dim sex As String
Dim age As Integer
Dim salary As Integer
End Structure
Private Sub insert()
list(0).name = "张三"
list(0).sex = "男"
list(1).name = "李四"
list(1).sex = "女"
End Sub
你可以放到main()里输出一下,就是这样...
以上就是土嘎嘎小编为大家整理的vb.net◆数组类型相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!