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";
}