I'm trying to make a multidimensional array and I'm following a sample that I found online and can't seem to get it to work in Xcode. Here is the form I used in the variable declaration:
double tcoord[3][3] = {
{
-70,70,-10.6789
}
{
-61.2525,-70,-23.9652
}
{
28.5760,-23.9126,-19.4531
}
};
I get an error saying "Expected '}' before '{' token"
Any ideas?
double tcoord[3][3] = {
{
-70,70,-10.6789
}
{
-61.2525,-70,-23.9652
}
{
28.5760,-23.9126,-19.4531
}
};
I get an error saying "Expected '}' before '{' token"
Any ideas?