日期:2014-05-17  浏览次数:20560 次

asp.net (C#)怎么初始化一个二维字符串数组
asp.net (C#)怎么初始化一个二维字符串数组,让它的初始值都是0. 如string num[i,j]的初始值都是0。

------解决方案--------------------
string[,] num=new string[,]{{"0","0","0"},{"0","0","0"},{"0","0","0"}}
------解决方案--------------------
C# code
for (int x = 0; x < i; x++)
    for (int y = 0; y < j; y++)
        num[i, j] = "";