Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Time Time::operator++(int)//i think this is the prefix operator??
- {
- Time tmp = *this;
- ++(*this);
- return tmp;
- }
- Time& Time::operator++() //i think this is the postfix operator
- {
- int tmp = this->convertToSecs() + 1;
- this->setTime(tmp);
- return *this;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement