Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. void dodajElement(Lista*& start, int wartosc)
  2. {
  3.     Lista* el = start;
  4.     if (el)
  5.     {
  6.         while (el->head->wartosc != wartosc)
  7.         {
  8.             el = el->head;
  9.         }
  10.  
  11.         Lista elDoUsuniecia = el->head;
  12.         el->head = el->head->head;
  13.         delete elDoUsuniecia;
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement