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?
You just forgot the =
sign and a semicolon ;
int[][][] points = {{{100, 120, 10}, {100, 120, 18}}};
int[][][] points = {{{100,200,300},{120,200},{200,250}}};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With