Files
42_INT_09_piscine_cpp/d02/ex00/Fixed.hpp
2022-02-14 03:08:13 +01:00

29 lines
454 B
C++

#ifndef FIXED_HPP
# define FIXED_HPP
#include <iostream>
#include <string>
class Fixed {
public:
Fixed( void ); // default/parametric constructor
Fixed( Fixed const & src ); // copy constructor
~Fixed( void ); // destructor
Fixed & operator=( Fixed const & rhs ); // assignement operator
int getRawBits( void ) const;
void setRawBits( int const raw );
private:
int _value;
static int const _frac = 8;
};
#endif