void Del_Same(LinkList &L)
{
LNode *q=L->next,*p;
if(q==NULL)
return;
while(q->next!=NULL)
{
p=q->next;
if(q->data==p->data)
{
q->next=p->next;
free(p);
}
else
q=q->next;
}
}
void Del_Same(LinkList &L)
{
LNode *q=L->next,*p;
if(q==NULL)
return;
while(q->next!=NULL)
{
p=q->next;
if(q->data==p->data)
{
q->next=p->next;
free(p);
}
else
q=q->next;
}
}