O
OMouse
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
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