Pi0trek

Usuwanie lisci

Oct 1st, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1.  if (temp->wartosc > Wartoœæ_do_usuniecia)
  2.             {
  3.                 if (temp->lewy->wartosc == Wartoœæ_do_usuniecia)
  4.                 {
  5.                     Lisc *tempLewy= temp->lewy->lewy;
  6.                     temp->lewy = temp->lewy->prawy;
  7.                     while(temp->lewy != 0)
  8.                     {
  9.                         temp=temp->lewy;
  10.                     }
  11.                     temp->lewy= tempLewy;
  12.                     break;
  13.                 }
  14.                
  15.                 temp = temp->lewy;
  16.                
  17.             }
Advertisement
Add Comment
Please, Sign In to add comment