How to define such objects?

May 9, 2011 at 7:54am
I need a way to represent Adjacency List with C++ containers, such as vector , list, i know the c implementation, but c++ implementation should be different and clear. Can i define the structure like this?
 
vector< list< int[2]> > obj;

May 9, 2011 at 8:28am
Yes, you can definitely define this type of structure...
May 9, 2011 at 12:45pm
Is that a good idea?
Is it better than the pointer-based structure?
Last edited on May 9, 2011 at 12:45pm
Topic archived. No new replies allowed.