Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Kwg(T element)
- {
- int tmp = ilosc - 1;
- T*temp;
- while (tmp != 0)
- {
- if (tab[tmp] > tab[rodzic(tmp)])
- {
- temp[tmp] = tab[rodzic(tmp)];
- tab[rodzic(tmp)] = tab[tmp];
- tab[tmp] = temp[tmp];
- tmp = rodzic(tmp);
- }
- else
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement