"asdf" <li*********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
>I was told not to use the low-level language such as arrays which
inherited from C, I want to know what can I use to substitute the
C-style multidimensional arrays? Is there multidimensional vector?
The usually way is to do a vector of vectors, but I find that troublesome,
and usually wind up encapsulating the 2nd vector. Something like:
struct MyList
{
std::vector<intIntVector;
};
std::vector<MyListMy2DArray;
I just find the syntax a bit easier than
std::vector<std::vector<int My2DArray;