c++ list class, type of node?
I have been asked to use objects of type list, what I use them for is upt o me, I am supposed to use an iterator to scan through and print out everythign in at least one list.
my problem is I am trying ot make my iterator and I realise I do not have this required info:
what "Node" type is used in a list type.
as in
Type *interator
as well so far we have been making our own nodes and giving them a pointer called Link to point to the next. is Link the usual name? would the Node type use it? as well I noticed lists can also go backwards, if Link is next what is previous?
I have the oreilly c++ and STl references, a class book, and the C++ STL hardback and I cannot seem to find this info, maybe I do not know where to look, or maybe I have missed the concept here somewhere.. can anyone help me?
|