#ifndef _ENTRY_H #define _ENTRY_H #include #include using namespace std; class Entry { protected: // data fields string firstName; string lastName; string email; /* Public methods for a typical Entry within a directory data will inlude a person's first name, last name and email address */ public: /* constructors */ Entry (); //Entry::Entry (char * first, char * last, char * eAddress) : Entry (const string & first,const string & last, const string & eAddress) ; /* method to allow viewing of an Entry */ string toString () const; // convert to string /*methods to allow comparing Entries */ bool operator < (const Entry & ent2); bool operator == (const Entry & ent2); bool operator <= (const Entry & ent2); bool operator != (const Entry & ent2); bool operator > (const Entry & ent2); bool operator >= (const Entry & ent2); /* overload the cout << operator for printing */ friend std::ostream &operator<<(std::ostream &os, Entry const &m) ; // send string to coout } ; #endif