XCode/C Multidimensional Array


i'm trying make multidimensional array , i'm following sample found online , can't seem work in xcode. here form used in variable declaration:

double tcoord[3][3] = {
{
-70,70,-10.6789
}
{
-61.2525,-70,-23.9652
}
{
28.5760,-23.9126,-19.4531
}
};

error saying "expected '}' before '{' token"

ideas?
 

there no commas between inner arrays.

-lee
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments