I need some way of initializing a jagged array that emulates the following code:
for (int i = 0; i < 7; i++)
{
myArray.IndexAndColor[i] = new int[3];
}
for (int n = 0; n < 7; n++)
{
myArray.IndexAndColor[n][0] = 1;
myArray.IndexAndColor[n][1] = 0;
myArray.IndexAndColor[n][2] = 0;
}


Sign In
Create Account

Back to top









