karen pointer sur fonctions en static, sed resolution eof
This commit is contained in:
29
d02/ex01/Fixed.hpp
Normal file
29
d02/ex01/Fixed.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#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( int integer);
|
||||
Fixed( float const floater );
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user