求好心人帮忙解释下这段小程序
Dim numbers() As Integer = {1, 4, 7}Dim letters() As String = {"a", "b", "c"}
For Each number As Integer In numbers
For Each letter As String In letters
Debug.Write(number.ToString & letter & " ")
Next
Next
Debug.WriteLine("")
最上面的两行是不是在定义动态数组阿,为何我自己另外在创建一个 dim a() As Integer = {1, 4, 7} 它就提示错误了,还有按照for each 语句规定letter 这个变量应该是变体类型阿,它怎么可以定义成字符串呢
[此贴子已经被作者于2016-9-14 12:47编辑过]