void DelMidNode (Node* n)
{
if (n == NULL)
{
printf("Node is NULL\n");
}
else if(n->next == NULL)
{
printf("n is Tail Node\n");
}
else
{
Node* del = n->next;
n->data = del->data;
n->next = del->next;
free(del);
del = NULL;
}
时间: 2024-10-20 04:59:15