22 lines
320 B
C++
22 lines
320 B
C++
#ifndef FIXED_HPP
|
|
# define FIXED_HPP
|
|
|
|
# include <iostream>
|
|
# include <string>
|
|
|
|
class Fixed {
|
|
public:
|
|
Fixed();
|
|
Fixed(const Fixed &fixed);
|
|
~Fixed();
|
|
Fixed& operator=(const Fixed &fixed);
|
|
|
|
int getRawBits() const;
|
|
void setRawBits(int const raw);
|
|
private:
|
|
int rawBits;
|
|
const static int bits = 8;
|
|
};
|
|
|
|
#endif
|