#include using namespace std; class SimpleT { public: SimpleT() { intData = 0; letterData = 'a'; cout << "In the simple constructor" << endl; } ~SimpleT() { cout << "In the simple destructor" << endl; } bool Less(const SimpleT & other) const { bool rValue; if (intData == other.intData) { rValue = letterData < other.letterData; } else { rValue = intData < other.intData; } return rValue; } void SetInt(int i){ intData = i; } void SetLetter(char c) { letterData = c; } int GetInt(void) const { return intData; } char GetChar(void) const { return letterData; } private: int intData; char letterData; }; int main() { cout << "Starting main" << endl; // SimpleT a; SimpleT ary[4]; /* SimpleT b; if(a.Less(b)) { cout << "a < b " << endl; } else { cout << "a not < b " << endl; } */ cout << "Exiting main" << endl; return 0; }