Of course it is that isn't the correct syntax this is how this array actually looks.
Код:
new Data[3][3][10] = {
{
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }
},
{
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }
},
{
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }
}
};
and I thought it would work.
But all I need is an array to store strings and some integers, I didn't know how to do it with a 2D.
Instead of a string or an array? I don't think I can do without an array because there's a lot more data than just 3 lines.
This is an example how you can do this with an enum.