Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int compare (const stud& a, const stud& b) {
- if (a.year == b.year)
- return 0;
- else {
- if (a.year > b.year)
- return 1;
- else
- return -1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement