#include using namespace std; class record { public: int hw1; int hw2; bool operator<(const record& second){ return (hw1 < second.hw1); // same as (*this).hw1 < second.hw1 } }; template int getMinPos(T arr[], int len){ int minpos = 0; for(int i=1;i void swap(T& a, T& b){ T tmp = a; a = b; b = tmp; } template void selsort(T arr[], int len){ for(int i=0;i