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
Line asking
Line asking
Oct 10, 2010 at 3:25pm UTC
mowie1
(26)
template <class generic>
SListIterator<generic>::SListIterator (SNode<generic> * x) : m_current (x)
what is that link asking. its asking me to start the linking or just traversing the list like,
Slist<char> s;
Slist<char>::Iteratori;
...
for (i= s.begin(); i!= s.end(); i++)
{
cout<< *i<< endl;
I am not sure about iterators
Oct 10, 2010 at 7:03pm UTC
jsmith
(5804)
That line is the first two lines of the implementation of
SListIterator<generic>'s constructor which takes a
pointer to an SNode<generic> as a parameter and
initializes SListIterator's m_current data member
with the value of x.
Topic archived. No new replies allowed.