Esempio n. 1
0
	bool Date::operator< (const Date & other) const
	{
		if (Year() < other.Year())
		{
			return true;
		}
		else if (Year() == other.Year())
		{
			if (Month() < other.Month())
			{
				return true;
			}
			else if (Month() == other.Month())
			{
				return Day() < other.Day();
			}
		}

		return false;
	}
Esempio n. 2
0
	bool Date::operator== (const Date & other) const
	{
		return Year() == other.Year() && Month() == other.Month() && Day() == other.Day();
	}