// Programmieren 1, Praktikum 6, Aufgabe 3 // Author: Sven Eisenhauer // Date: 17.01.2005 // File: Int40.h // Description: class Integer40 #ifndef INT40_1 #define INT40_1 #include using std::ostream; using std::istream; const static int ARRAYSIZE=40; class Integer40 { public: Integer40(); Integer40(const Integer40&); ~Integer40(); const Integer40& read(); friend istream& operator>> (istream&, Integer40 &); const Integer40& write(); friend ostream& operator<< (ostream&, const Integer40&); friend Integer40& operator+ (const Integer40&, const Integer40&); friend Integer40& operator- (const Integer40&, const Integer40&); const Integer40& add(const Integer40&); const Integer40& operator+=(const Integer40&); const Integer40& substract(const Integer40&); const Integer40& operator-=(const Integer40&); const Integer40& operator=(const Integer40&); bool isEqual(const Integer40&) const; bool operator==(const Integer40&) const; bool isNotEqual(const Integer40&) const; bool operator!=(const Integer40&) const; bool isGreaterThan(const Integer40&) const; bool operator>(const Integer40&) const; bool isSmallerThan(const Integer40&) const; bool operator<(const Integer40&) const; bool isGreaterOrEqual(const Integer40&) const; bool operator>=(const Integer40&) const; bool isSmallerOrEqual(const Integer40&) const; bool operator<=(const Integer40&) const; bool isZero(); //const Integer40& operator-(const Integer40&); //const Integer40& operator+(const Integer40&); private: int *int40; //static int nrInt40; }; #endif