karen pointer sur fonctions en static, sed resolution eof

This commit is contained in:
Hugo LAMY
2022-02-10 17:21:01 +01:00
parent c287ea7c97
commit 504f6c3524
29 changed files with 369 additions and 8 deletions

29
d02/ex01/Fixed.hpp Normal file
View 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