class Date {
private:
int year;
int month;
int day;
public:
void get_date()
{
// fill in year, month, day from user input, presumably
}
void show_date()
{
// print year, month, day
}
void show_days(const Date& date1, const Date& date2)
{
// idk what the point of this is, but here you go
}
booloperator<(const Date& date)
{
// compare this to another Date
returntrue; // TODO
}
};
1 2 3 4 5 6 7 8
int main()
{
Date date_1;
Date date_2;
Date date_3;
// ...
}