Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SortujKopiec(Zamowienie Kopiec [],int J)
- {
- Zamowienie bufor;
- for(int i=J;i>0;i--)
- {
- if (Kopiec[i].getPriority() > Kopiec[i/2].getPriority())
- {
- bufor = Kopiec[i];
- Kopiec[i] = Kopiec[i/2];
- Kopiec[i/2] = bufor;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement