Advertisement
Guest User

ThisCode

a guest
Jan 20th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. sBinary::sBinary(vector<studentType> _sList, char _choice){
  2. sList=_sList;
  3. steps=0;
  4. choice=_choice;
  5. switch (choice){
  6. case 'f':
  7. case 'F':
  8. sort(sList.begin(),sList.end(), lessThanFirst);
  9. break;
  10. case 'l':
  11. case 'L':
  12. sort(sList.begin(),sList.end(), lessThanLast);
  13. break;
  14. case 'r':
  15. case 'R':
  16. sort(sList.begin(),sList.end(), lessThanBoth);
  17. break;
  18. default:
  19. sort(sList.begin(),sList.end(), lessThanReverse);
  20.  
  21. }
  22. sort(sList.begin(),sList.end(), *this);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement