Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sBinary::sBinary(vector<studentType> _sList, char _choice){
- sList=_sList;
- steps=0;
- choice=_choice;
- switch (choice){
- case 'f':
- case 'F':
- sort(sList.begin(),sList.end(), lessThanFirst);
- break;
- case 'l':
- case 'L':
- sort(sList.begin(),sList.end(), lessThanLast);
- break;
- case 'r':
- case 'R':
- sort(sList.begin(),sList.end(), lessThanBoth);
- break;
- default:
- sort(sList.begin(),sList.end(), lessThanReverse);
- }
- sort(sList.begin(),sList.end(), *this);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement