DoubleNode* deleteTheNode(DoubleNode* head,int num)
{
DoubleNode*p = head;
if (p->data == num)
{
head = p->next;
head->prev = NULL;
free(p);
return head;
}
while(p)
{
if (p->data == num)
{
[$##$];
p->next->prev = p->prev;
free(p);
return head;
}
p = p->next;
}
printf("not found!\n");
return head;
}