Thursday 15 July 2010

c++ - Creating a two dimensional array of pointers -


I'm trying to create a two-dimensional array. What is wrong with the declaration given below

  node * route [100] [100] = new node * [100] [100]; I wonder if you need "an indicator [2] a 2 dimensional array", then I wonder if 

  node (* root) [100] [100] = new node [1] [100 ] [100];   

or "an indicator [works as a 2-dimensional array"]

  node (* root) [100] = new node [ 100] [100];    

No comments:

Post a Comment