// Ch. 10 Demo #8
// Wyo C++
// October 24, 2001 // Purpose - use enum
#include <iostream.h>

int main()
{
   enum Month {jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec};

   Month dateMattHired = jan;
   Month dateDanHired = mar;
   Month dateMattFired = oct;
   Month dateDanFired = apr;

   if (dateMattFired - dateMattHired > dateDanFired - dateDanHired)
   {
      cout << "Matt lasted longer" << endl;
   }
   else
   {
      cout << "Dan lasted longer" << endl;
   }

   cout << dateMattFired << endl;
   return 0;
}// end of main