Original Post
I''m trying to make a multidimensional array on the fly, but the compiler doesn''t like what i''m doing. Here is what I''m tyring to do:
CLinkedList* GridArray;
...
int X = Width/LargestWidth;
int Y = Height/LargestHeight;
GridArray = new CLinkedList[X][Y];
In that last line, I can assign the GridArray to a single dimensional array no problem, since an array is merely a pointer after all. But if I try to do it with a multidimensional array like I need to, the compiler barks and it''s a no go. Is my syntax wrong, or am I trying to do something that is impossible pointer wise?