Archived

This topic is now archived and is closed to further replies.

how to use dynamic arrays?

This topic is 5918 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

lets say i wanna do a matrix: WORD Map[x][y] how can i allocate this dynamic array with still refering to it as a matrix? 10x, Gil

Share this post


Link to post
Share on other sites
doesnt work
see, he doesnt accept the [] in
Map = new (char *)[x];


Gil

Edited by - GilZu on November 3, 2001 3:35:47 PM

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Drop the parentheses. I find that behavior very odd, though...

Map = new char *[x];

Share this post


Link to post
Share on other sites