How do I make the split string into 2 dimensional array in C# Console App?
char[,] table2x2 = new char[2, 2];
string myString = "11A23A4A5A";
string[] splitA = myString.Split(new char[] { 'A' });
so that the output would be
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
Returned back to original question. Thanks in advance!
table2x2elements would bechar, you never get that output. You should change it tostringorint(that requires parsing).table3x3. How are you constructing the output?Aor any digits that come afterAs? Neither is like your expected output, and I don't understand the output.