Hi,
While creating this program i keep gettin this error that says: "Invalid Rank Specifier: expected ',' or ']'"
using System;
class New
{
public static void Main()
{
int[,,] myArray = new int[,,]
{
{200, 100, 100},//problem here
{100, 200, 2345},//problem here
{244, 3435, 443},//problem here
{4232, 342, 567},//problem here
{434, 344, 1112},//problem here
};
int i;
int j;
int z;
for (i = 0; i < 5; i++)
{
for (j = 0; j < 5; j++)
{
for (z = 0; z < 5; z++)
{
Console.WriteLine(myArray[i, j, z]);
}
}
}
}
}
While creating this program i keep gettin this error that says: "Invalid Rank Specifier: expected ',' or ']'"
using System;
class New
{
public static void Main()
{
int[,,] myArray = new int[,,]
{
{200, 100, 100},//problem here
{100, 200, 2345},//problem here
{244, 3435, 443},//problem here
{4232, 342, 567},//problem here
{434, 344, 1112},//problem here
};
int i;
int j;
int z;
for (i = 0; i < 5; i++)
{
for (j = 0; j < 5; j++)
{
for (z = 0; z < 5; z++)
{
Console.WriteLine(myArray[i, j, z]);
}
}
}
}
}