Problems with pointers to arrays of objects.
Try this:
void draw_map(CTile pMap[][]);
...or is it
void draw_map(CTile[][] pMap); ?
I forgot, I never use static array anymore.
My compiler generates one error message: "does not compile."
void draw_map(CTile pMap[][]);
...or is it
void draw_map(CTile[][] pMap); ?
I forgot, I never use static array anymore.
My compiler generates one error message: "does not compile."
You know what, make yourself comfortable using multiple pointers and dynamic allocation memory, that''s gonna save your life.
Thanks for the replies everyone, although I''m still pretty confused =)
It''s working great right now with the CTile array stored in a CMap class, and passing a pointer to that CMap the the draw_screen function.
All is good now.
~~~~~~~~~~~
Chris Vogel
~~~~~~~~~~~
It''s working great right now with the CTile array stored in a CMap class, and passing a pointer to that CMap the the draw_screen function.
All is good now.
~~~~~~~~~~~
Chris Vogel
~~~~~~~~~~~
quote:Original post by Radagar
I really prefer to keep the multi-dimensional array.
Why not go for a more C++ solution and create your own class for your two-dimensional arrays?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement