// Fig. 4.8: hugeint1.h // Definition for class HugeInt #ifndef HUGEINT1_H #define HUGEINT1_H #include using std::ostream; class HugeInt { friend ostream &operator<<( ostream &, const HugeInt & ); public: HugeInt( long = 0 ); // conversion/default constructor HugeInt( const char * ); // conversion constructor HugeInt operator+( const HugeInt & ); // add another HugeInt HugeInt operator+( int ); // add an int HugeInt operator+( const char * ); // add an int in a char * private: short integer[ 30 ]; }; #endif