Dynamic allocated two-dimensional array?

Hi forum,

I've have a problem that I don't really know how to handle.
I'm having a lot of playlists. Each playlist has a user defined name. These names are saved in a file. What I want to do is that I would like to store the name under program startup in a dynamic allocated two-dimensional array.
I got the method for extracting each name from the file but I got problems with the array.
How do I make a dynamic allocated two-dimensional array?

The idea is to make something that works like this:

TCHAR listnames[i][j];

"i" is for selecting the desired playlist.
"j" contain the name of the desired playlist.

I hope you understand what I mean.

Regards,

Simon H.A.
Last edited on
Don't. Instead, make a wrapper class that wraps a one dimensional array and lets you access it like a 2D array. It's much easier to deal with.
Topic archived. No new replies allowed.