#include using namespace std; class record { public: int hw1; int hw2; bool smaller(const record& second){ return (hw1 < second.hw1); // same as (*this).hw1 < second.hw1 } }; int getMinPos1(record arr[], int len){ int minpos = 0; for(int i=1;i