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>
DoublyCircularL inkList<TDoubly CircularLinkLis t<T>:: operator +
(const DoublyCircularL inkList& rhs) {
if (head==0 && rhs.head==0) {
return *this;
}
else if (rhs.head==0)
{
return *this;
}
else {
DoublyCircularL inkList<T>* Return;
Return-
DNode<T>*
TEMP=head;
do
{
Return-
TEMP=TEMP-
} while (TEMP!
=tail->GetNextPtr() );
TEMP=rhs.head;
do
{
Return-
TEMP=TEMP-
} while (TEMP!
=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>
DoublyCircularL inkList<TDoubly CircularLinkLis t<T>:: operator +
(const DoublyCircularL inkList& rhs) {
if (head==0 && rhs.head==0) {
return *this;
}
else if (rhs.head==0)
{
return *this;
}
else {
DoublyCircularL inkList<T>* Return;
Return-
>Insert(5);
TEMP=head;
do
{
Return-
>Insert(TEMP->Get());
>GetNextPtr() ;
=tail->GetNextPtr() );
TEMP=rhs.head;
do
{
Return-
>Insert(TEMP->Get());
>GetNextPtr() ;
=rhs.tail->GetNextPtr() );
return
*Return;
}
}
Comment