问题描述
我想要decalre并用一些数字填充数组,5,7,8,9,0
我这样做:
Dim myarray为int =(5,7,8,9,0)
如果不是我怎么做?
谢谢。
I want to decalre and fill an array with some numbers, 5, 7, 8, 9, 0
do I just do this:
Dim myarray as int = (5,7,8,9,0)
if not how would i do this?
thanks.
推荐答案
\\\
Dim MyArray()As Integer = {5,7,8,9,0}
///
-
MS Herfried K. Wagner
MVP< URL:http ://dotnet.mvps.org/>
VB< URL:http://dotnet.mvps.org/dotnet/faqs/>
\\\
Dim MyArray() As Integer = {5, 7, 8, 9, 0}
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
\\\
Dim MyArray()As Integer = {5,7,8,9,0}
///
-
MS Herfried K. Wagner
MVP< URL:http ://dotnet.mvps.org/>
VB< URL:http://dotnet.mvps.org/dotnet/faqs/>
\\\
Dim MyArray() As Integer = {5, 7, 8, 9, 0}
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
这篇关于如何声明和填充此数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!