如何在 C# Console App 中将拆分字符串转换为二维数组?
char[,] table2x2 = new char[2, 2];
string myString = "11A23A4A5A";
string[] splitA = myString.Split(new char[] { 'A' });
这样输出将是
Console.WriteLine(table3x3[0, 0]); //output: 11
Console.WriteLine(table3x3[0, 1]); //output: 23
Console.WriteLine(table3x3[1, 0]); //output: 4
Console.WriteLine(table3x3[1, 1]); //output: 5
回到原来的问题。提前致谢!