Boolean operator==(DoublyList
{
DoubleNode
DoubleNode
While (p!=NULL& & Q!=NULL)
{
If (p - & gt; The data!=q - & gt; Data)
return false;
The else
{
P=p - & gt; next;
Q=q - & gt; next;
}
}
Return (p==NULL& & Q==NULL);
}
CodePudding user response:
The code is not complete, bad judgmentCodePudding user response:
If you are a class member function, writing in the class, so no template<.> LeadingIf you are a class member function, write outside the class, need
Template<.>
Bool DoublyList: : operator==(... );
If it is a friend function requires two parameters