本文介绍了如何声明和填充此数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要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/>



这篇关于如何声明和填充此数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 15:17