M
Muzammil
i have problem with this operator "+" in doubly circular link list.(i
think i have problem with return type).
error is of instantiate error.(mean type dismatch) if any one can help
me please reply.
template <class T>
DoublyCircularLinkList<T> DoublyCircularLinkList<T>:: operator +
(const DoublyCircularLinkList& rhs) {
if (head==0 && rhs.head==0) {
return *this;
}
else if (rhs.head==0)
{
return *this;
}
else {
TEMP=head;
do
{
Return-
=tail->GetNextPtr());
TEMP=rhs.head;
do
{
Return-
=rhs.tail->GetNextPtr());
return
*Return;
}
}
think i have problem with return type).
error is of instantiate error.(mean type dismatch) if any one can help
me please reply.
template <class T>
DoublyCircularLinkList<T> DoublyCircularLinkList<T>:: operator +
(const DoublyCircularLinkList& rhs) {
if (head==0 && rhs.head==0) {
return *this;
}
else if (rhs.head==0)
{
return *this;
}
else {
DNode<T>*DoublyCircularLinkList said:Insert(5);
TEMP=head;
do
{
Return-
TEMP=TEMP-Insert(TEMP->Get());
} while (TEMP!GetNextPtr();
=tail->GetNextPtr());
TEMP=rhs.head;
do
{
Return-
TEMP=TEMP-Insert(TEMP->Get());
} while (TEMP!GetNextPtr();
=rhs.tail->GetNextPtr());
return
*Return;
}
}