J
J
Julia Yushina2020-06-03 01:47:32
C++ / C#
Julia Yushina, 2020-06-03 01:47:32

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 question

Ask a Question

731 491 924 answers to any question