feat(ex00): it works
This commit is contained in:
commit
b54faafe1d
6 changed files with 105 additions and 0 deletions
19
ex00/Fixed.hpp
Normal file
19
ex00/Fixed.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef FIXED_HPP
|
||||
#define FIXED_HPP
|
||||
|
||||
class Fixed {
|
||||
public:
|
||||
Fixed();
|
||||
Fixed(Fixed &other);
|
||||
Fixed &operator=(Fixed &other);
|
||||
~Fixed();
|
||||
|
||||
int getRawBits(void) const;
|
||||
void setRawBits(int const raw);
|
||||
|
||||
private:
|
||||
int value;
|
||||
static const int fracbits;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue