//----------------------------------------------------------------------------
#include "nameageclass.h"
//----------------------------------------------------------------------------
//----Default constructor
person::person(void) {

//----Strings are initialized by string class constructor. Do Age
Age = 0;
}
//----------------------------------------------------------------------------
//----Prompt user for names and ages, and read
void person::Read(const string& WhichPerson) {

cout << "Enter the first and last names and age for the " << WhichPerson
     << " person:" << endl;
cin >> FirstName >> LastName >> Age;
}
//----------------------------------------------------------------------------
//----Write person and age
void person::Write(void) {

cout << FirstName << " " << LastName << " " << Age << endl;
}
//----------------------------------------------------------------------------
boolean person::operator >(const person& SmallerPerson) {

//----Compare last names
return(LastName > SmallerPerson.LastName);
}
//----------------------------------------------------------------------------
