Please show us what you've tried, and explain just what you're trying to accomplish.
I could dust off my lecture, or you could do a little searching. Googling "c++ 2D dynamic array" brings up several hits that look helpful.
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228
Read the article posted above, starting at
Another way to make multi dimensional arrays is using a concept known as pointer to pointers. Like Ron was saying on thursday, most of think of a 2D array like a spreadsheet with rows and columns (which is just fine), but...
That tells you how to allocate dynamic 2D array based on user or file input.
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228
The Google is your friend.
And it's considered quite tacky to tack onto an old thread with a question that is only loosely associated. Start your own thread, explain your particular problem, and what you've tried.
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228