Files
cpp02/ex00/Fixed/Fixed.hpp
2025-09-10 17:34:11 +02:00

43 lines
1.3 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/10 00:54:53 by tigos #+# #+# */
/* Updated: 2025/09/10 11:00:19 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FIXED_HPP
# define FIXED_HPP
# include <iostream>
class Fixed
{
private:
int value;
static const int fract;
public:
// Default constructor
Fixed();
// Copy constructor
Fixed(Fixed &other);
// Copy assignment operator overload
Fixed& operator=(Fixed const &other);
// Destructor
~Fixed();
int getRawBits( void ) const;
void setRawBits( int const raw );
};
#endif