Beispiel #1
0
bool MyTime::operator ==(const MyTime t) const
{
    return ((this->days() == t.days()) && (this->hours() == t.hours()) && (this->minutes() == t.minutes()));
}
Beispiel #2
0
MyTime MyTime::operator -(const MyTime t) const
{
    return MyTime(this->days() - t.days(), this->hours() - t.hours(), this->minutes() - t.minutes());
}