Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. void Kwg(T element)
  2.     {
  3.         int tmp = ilosc - 1;
  4.         T*temp;
  5.         while (tmp != 0)
  6.         {
  7.             if (tab[tmp] > tab[rodzic(tmp)])
  8.             {
  9.                 temp[tmp] = tab[rodzic(tmp)];
  10.                 tab[rodzic(tmp)] = tab[tmp];
  11.                 tab[tmp] = temp[tmp];
  12.                 tmp = rodzic(tmp);
  13.             }
  14.             else
  15.                 break;
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement