纳金网
标题:
C#二维数组输出
[打印本页]
作者:
烟雨
时间:
2015-8-30 00:22
标题:
C#二维数组输出
string[,] m_Lists =
{
{"1000","勇者"} ,
{"2000","勇者"} ,
{"3000","勇者"} ,
{"4000","勇者"} ,
{"1001","勇者"} ,
{"1002","勇者"} ,
{"1003","勇者"} ,
{"1004","勇者"}
};
for (int i = 0; i < m_Lists.GetLength(0);++i )
{
for (int j = 0; j < m_Lists.GetLength(1); ++j)
{
Console.Write(i + "Id:" + m_Lists.GetValue(i,j) + "\n");
}
}
欢迎光临 纳金网 (http://go.narkii.com/club/)
Powered by Discuz! X2.5