// date.h   A simple date class for use with the Baseball database
// P. Conrad, for CISC220, 06J

#ifndef DATE_H
#define DATE_H

#include <iostream>
// no using namespace std; here; instead, explicitly use std::

class Date_C
{
 public: 

  Date_C (const int y, const int m, const int d);  
  Date_C (const char * const date);  
  void print(std::ostream & out = std::cout) const;
  int getYear() const  { return year; }
  int getMonth() const { return month; }
  int getDay() const  { return day; }

  bool operator == (const Date_C &right) const 
  { return ( (year == right.year) && 
	     (month == right.month ) && 
	     ( day == right.day ) ); }
  
 private:

  int year;
  int month;
  int day;

};

std::ostream & operator << (std::ostream & left, const Date_C & right);

// show error that results when leaving off the semicolon 
// and trying to compile date.cc


#endif


