Answer the question
In order to leave comments, you need to log in
How to view a list not through dynamic memory "c++" lists?
void del_dublicate(ElemL1* head)
{
ElemL1* current = head;
ElemL1* current2;
ElemL1* current2prev;
current2prev = current;
while (current != NULL)
{
current2 = current->next;
while (current2 != NULL)
{
if (issame(current, current2))
{
current2prev->next = current2->next;
}
else { current2prev = current2; }
current2 = current2->next;
}
current = current->next;
}
cout << "\nПовторяющиеся элементы удалены\n";
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question