By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,901 Members | 1,297 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,901 IT Pros & Developers. It's quick & easy.

operator<< recursion

P: n/a
Hi, I have a node class as part of a tree class. When I << the node, I
want it to also continue to the next node in the chain and output that
one till a NULL has been reached.

This is what I have so far.

ostream& operator<<(ostream &out, xmlElement &outElement)
{
out << "Blah\n";
if (outElement.getFirst() != NULL)
operator<<(out, *outElement.getFirst());
return out;
}

Thanks for any help,
Rudolf/OMouse

Oct 27 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Actually. Nevermind. I think I've solved the problem. Sorry about that.
Heh.
Rudolf

Oct 27 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.