modif d01 ex03 weapon gettype return ref sur const string, d02 ex02 fini

This commit is contained in:
Hugo LAMY
2022-02-16 18:06:24 +01:00
parent d45a096244
commit ae62a6d0d7
7 changed files with 149 additions and 88 deletions

View File

@@ -26,8 +26,15 @@ public:
Fixed operator- (Fixed const & rhs) const;
Fixed operator* (Fixed const & rhs) const;
Fixed operator/ (Fixed const & rhs) const;
// void operator++(void);
// void operator--(void);
Fixed operator++(void); // prefix ++o
Fixed operator--(void); // prefix --o
Fixed operator++(int); // postfix o++
Fixed operator--(int); // postfix o--
static const Fixed & min(Fixed const & lhs, Fixed const & rhs);
static const Fixed & max(Fixed const & lhs, Fixed const & rhs);
static Fixed & min(Fixed & lhs, Fixed & rhs);
static Fixed & max(Fixed & lhs, Fixed & rhs);
int getRawBits(void) const;
void setRawBits(int const raw);