// File: dofydriver_v3.cpp
// Program to demonstrate the class DayOfYear, version 3.

#include <iostream>
#include "dayofyear_v3.h"
using namespace std;

int main( )
{
   DayOfYear today,                 // default construction
             bachBirthday(3, 21);   // explicit-value construction

   cout << "Enter today's date (mm/dd): ";
   today.Input(cin);
   cout << "Today's date is ";
   today.Output(cout);
   cout << endl;
   
   cout << "J. S. Bach's birthday is ";
   bachBirthday.Output(cout);
   cout << endl;
   
   if ( today == bachBirthday)
      cout << "Happy Birthday Johann Sebastian!\n";
   else
      cout << "Happy Unbirthday Johann Sebastian!\n";
   return 0;
}  // end main
