diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Prog1/Prakt6/prg1p6_3/Int40.h | |
| download | Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2 | |
Diffstat (limited to 'Bachelor/Prog1/Prakt6/prg1p6_3/Int40.h')
| -rw-r--r-- | Bachelor/Prog1/Prakt6/prg1p6_3/Int40.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Bachelor/Prog1/Prakt6/prg1p6_3/Int40.h b/Bachelor/Prog1/Prakt6/prg1p6_3/Int40.h new file mode 100644 index 0000000..c4949f3 --- /dev/null +++ b/Bachelor/Prog1/Prakt6/prg1p6_3/Int40.h @@ -0,0 +1,55 @@ +// 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<iostream>
+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
\ No newline at end of file |
