cpp02/ex00/Fixed.hpp

20 lines
279 B
C++
Raw Permalink Normal View History

2025-05-13 13:38:40 +02:00
#ifndef FIXED_HPP
#define FIXED_HPP
class Fixed {
public:
Fixed();
Fixed(const Fixed &other);
Fixed &operator=(const Fixed &other);
2025-05-13 13:38:40 +02:00
~Fixed();
int getRawBits(void) const;
void setRawBits(int const raw);
private:
int value;
static const int fracbits;
};
#endif