Listing 7 The Date type in C++

// date3.h

struct Date
{
   Date(int, int, int);
   char *format(char *) const;
   int compare(const Date &) const;

private:
   int month;
   int day;
   int year;

   static const char * month_text[13];
};

/* End of File */