Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void bubble_sort(struct Student *list, int n)
- {
- int c, d;
- struct Student t;
- for (c = 0; c < n - 1; c++) {
- for (d = 0; d < n - c - 1; d++) {
- if (list[d].stypendium > list[d + 1].stypendium) {
- t = list[d];
- list[d] = list[d + 1];
- list[d + 1] = t;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment