creation d02 ex02
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <cmath>
|
||||
|
||||
class Fixed {
|
||||
|
||||
@@ -18,7 +19,7 @@ public:
|
||||
|
||||
int getRawBits(void) const;
|
||||
void setRawBits(int const raw);
|
||||
void toFloat(void) const;
|
||||
float toFloat(void) const;
|
||||
int toInt(void) const;
|
||||
|
||||
private:
|
||||
@@ -29,4 +30,6 @@ private:
|
||||
|
||||
};
|
||||
|
||||
std::ostream & operator<<(std::ostream & out, Fixed const & fixed);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user