tags:

views:

51

answers:

2

I need to represent some spatial points: x,y,z

when I try to initialize the array like this:

int[][][] points
{
   {
      {100, 120, 10},
      {100, 120, 18},
      ...
   }
}

I got an error: Uncompilable source code - not a statement

where is the error?

+5  A: 

You just forgot the = sign.

int[][][] points = {{ {100, 120, 10}, {100, 120, 18} } };
Bakkal
and the semicolon at the end.
Shakedown
Damn... Thanks!!!
xdevel2000
+2  A: 
int[][][] points = {{{100,200,300},{120,200},{200,250}}};
Upul