Top.Mail.Ru
The C++ Community's Journal -- Day
? ?
The C++ Community's Journal -- Day [entries|friends|calendar]
The C++ Community

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

help with linked lists [17 Jul 2002|12:45am]
what would happen if you returned *this when using linked lists? Because I'm not too sure if I can do that, or not.

Here's an example of an overloaded operator which adds whatever terms are in aNode to the current linked list:

Node Node::operator+=(const Node* aNode) {


*this = *this + aNode;

return *this;
}
2 comments|post comment

navigation
[ viewing | July 17th, 2002 ]
[ go | previous day|next day ]
Image