d02 ex02 operator < ok

This commit is contained in:
hugogogo
2022-02-15 00:31:59 +01:00
parent b08663e74e
commit c9a833bc00
6 changed files with 60 additions and 31 deletions

View File

@@ -15,7 +15,14 @@ public:
Fixed(int integer);
Fixed(float const floater);
Fixed & operator=(Fixed const & rhs); // assignement operator
Fixed & operator= (Fixed const & rhs); // assignement operator
// Fixed operator+ (Fixed const & rhs) const;
bool operator< (Fixed const & rhs) const;
// Fixed operator> (Fixed const & rhs) const;
// Fixed operator<=(Fixed const & rhs) const;
// Fixed operator>=(Fixed const & rhs) const;
// Fixed operator==(Fixed const & rhs) const;
// Fixed operator!=(Fixed const & rhs) const;
int getRawBits(void) const;
void setRawBits(int const raw);
@@ -30,6 +37,6 @@ private:
};
std::ostream & operator<<(std::ostream & out, Fixed const & fixed);
std::ostream & operator<<(std::ostream & o, Fixed const & rhs);
#endif