// fourth version of the 'date' class
// - added cache of string form of the date
// - added destructor

#ifndef DATE_H
#define DATE_H

class date
{
    int  day;
    int  month;
    int  year;
    char *str;
    
  public:
    date(int d, int m, int y = currentYear());
    date(char *);
    ~date();
    void getDMY(int*, int*, int*);
    void increment();
    void print();
};

#endif // DATE_H
