cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to define such objects?
How to define such objects?
May 9, 2011 at 7:54am UTC
akilguo
(43)
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 UTC
ankitsingh12
(22)
Yes, you can definitely define this type of structure...
May 9, 2011 at 12:45pm UTC
akilguo
(43)
Is that a good idea?
Is it better than the pointer-based structure?
Last edited on
May 9, 2011 at 12:45pm UTC
Topic archived. No new replies allowed.