IN3013/INM173 - Object-Oriented Programming in C++
These exercises provide practice with defining and using overloaded operators. In each case, you should add const annotations as appropriate.
You don't need to worry about the constants and functions defined before the Date class: they do the various conversions between representations. You won't need to change them.
Download date.cc and adapt your definition of the « operator to it. (This will be easy, since the new version supports the old public interface.)
Use this to compute:
Use this to compute
#include <utility>
this will also define the other relational operators.
Use these to write a loop printing the dates for today, today week, etc up to the end of the year.