Advertisement
Endil

Untitled

Jun 2nd, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. int compare (const stud& a, const stud& b) {
  2.     if (a.year == b.year)
  3.         return 0;
  4.     else {
  5.         if (a.year > b.year)
  6.             return 1;
  7.         else
  8.             return -1;
  9.     }      
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement