diff options
Diffstat (limited to 'number.cpp')
-rw-r--r-- | number.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -149,6 +149,25 @@ number::operator!=(const number &n) const } /* }}} */ +/* Assignment operators {{{ */ + +number & +number::operator+=(const number &n) +{ + *this = *this + n; + + return *this; +} + +number & +number::operator++() +{ + *this = *this + 1; + + return *this; +} + +/* }}} */ std::ostream & operator<<(std::ostream &os, const number &n) |