字符串格式如下:
"a,b,c;你,我,他"分别以","和";"作分隔符
得到string[,]
或者string[][]

解决方案 »

  1.   

    例子:public static void Main(string[] args) {
    string s = "a,b,c;你,我,他";
    string[] ss = s.Split(';');
    string[][] sss = new string[ss.Length][];
    for(int i = 0; i < ss.Length; i++) {
    sss[i] = ss[i].Split(',');
    } for(int i = 0; i < sss.Length; i++) {
    for(int j = 0; j < sss[i].Length; j++) {
    Console.WriteLine(sss[i][j]);
    }
    }
    }
      

  2.   

    看来还是得一个个赋值,thank you!
      

  3.   

    有一种办法 是VC写的
    不用这么写 C#我是不知道的