Troudeloup
asked on
[noob][c++] how do I establish a list ?
for starting a set,
what I need is this
set<int, greater<int> > s;
set<int, greater<int> >::iterator i;
i want something as simple that above for list
and then i ll start a thread about lists' accessors and mutators.
what I need is this
set<int, greater<int> > s;
set<int, greater<int> >::iterator i;
i want something as simple that above for list
and then i ll start a thread about lists' accessors and mutators.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
oh, so first I have to point the iterator somewhere by doing, for instance
s.begin()
?
s.begin()
?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok.
Indeed this is an experts forum, so you have to read all the theory first to have some level of expertise, then post here the hard questions.
ASKER