// third version of the 'date' class
// - added another constructor

#include "date3.h"

// constructor
date::date(int d, int m, int y)
{
    day = d;
    month = m;
    year = y;
}

// constructor
date::date(const char *dateStr)
{
    // insert code here to parse string to get DMY
    day = ?;
    month = ?;
    year = ?;
}

void date::getDMY(int *ptr_day, int *ptr_month, int *ptr_year)
{
    *ptr_day = day;
    *ptr_month = month;
    *ptr_year = year;
}

void date::increment()
{
    if (++day > 28)
    {
        // do the hard part
    }
}

void date::print()
{
    cout << day << ¹/¹ << month << ¹/¹ << year;
}

int currentYear()
{
    // insert code here to determine the current year
    int currYear = ?;
    return currYear;
}

