can i know how to use and work with vectors withing vectors in c++ stl

like

" vector<int>g(vector<int>nodes(vector<int>adj))"

thanks

Printable View

- 01-16-2009dppMultiple vectors
can i know how to use and work with vectors withing vectors in c++ stl

like

" vector<int>g(vector<int>nodes(vector<int>adj))"

thanks - 01-16-2009Elysia
Uh,

Code:`vector< vector< vector<int> > > myvector`

I assume that is what you are after? Your question is rather vague. - 01-16-2009dpp
my question is just to implement something adjacency linked list in vectors

- 01-16-2009Desolation
std::list< blah > foo;

? - 01-16-2009dpp
i guess u r talking about normal lists..

wat i asked for is adjacency linked list - 01-16-2009VirtualAce
Perhaps a map or hash table of vectors or some other container might be more suited to what you need.