Hi all,

I'm having some trouble getting my head around using a vector of vectors. I was wondering if anyone could set me straight with this - it's been ages since i've used vectors... :/

Code:
typedef std::list <Cenemy *> listEnemies;
std::vector <listEnemies> m_wavesEnemies;
I am not sure that this is the correct way to add new elements into the array

Code:
Cenemy *e = new Cenemy();

m_wavesEnemies.resize(10);

// Then added elements
m_wavesEnemies[0].push_back(e);
but i'm more confused about how to read the elements - the following doesn't appear to work and throws up a compiler error:

Code:
m_wavesEnemies[0][0];
Thanks for the help!