// Person.h: Interface for class Person #if !defined PERSON_H #define PERSON_H #include #include class Person { friend std::ostream& operator<<( std::ostream&, const Person& ); public: Person( std::string = "", std::string = "" ); // default constructor bool operator<( const Person& ) const; bool operator>( const Person& right ) const { return right < *this; } private: std::string firstName; std::string lastName; }; #endif // !defined PERSON_H