#include <iostream>
#include <stdexcept>

#include "date.h"

using namespace std;

int main()
{
	Date d(2018, 12, 31);
	d.afficher();

	d.rajouter_jour();
	d.afficher();

	try {
		Date d2(2018, 13, 30);
	} catch(invalid_argument e) {
		cout << "exception : " << e.what() << endl;
	}

	Date d3 = d + 32;
	d3.afficher();

	cout << d3 << endl;
}