#ifndef INTEGER_H #define INTEGER_H #include class Integer { public: Integer(int i = 0); explicit operator int () const; bool operator==(Integer const& i) const; bool operator<(Integer const& i) const; Integer& operator++(); friend std::ostream& operator<<(std::ostream& os, Integer const& i); private: bool same_sign(Integer const& i) const; unsigned int positive(int i) const; unsigned long long int value; bool negative; }; #endif