Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void najlepszy(Wyniki* tab)
- {
- int best = tab[0].liczba_punktow;
- int j = 0;
- for(int i = 1; i < MAXSTUD; ++i)
- if(tab[i].liczba_punktow > best)
- {
- best = tab[i].liczba_punktow;
- j = i;
- }
- cout << "Najlepszy wynik osiagnal student nr " << tab[j].numerIndeksu << ":\n";
- cout << tab[j].imie << " " << tab[j].nazwisko << ": " << tab[j].liczba_punktow << "pkt\n\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement