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

36
d02/ex01/main.cpp Normal file
View File

@@ -0,0 +1,36 @@
#include "Fixed.hpp"
#include <iostream>
int main( void ) {
Fixed a( 1 );
std::cout << a.getRawBits() << '\n';
Fixed b( 6 );
std::cout << b.getRawBits() << '\n';
Fixed c( -6 );
std::cout << c.getRawBits() << '\n';
Fixed d( -1 );
std::cout << d.getRawBits() << '\n';
// Fixed a;
// Fixed const b( 10 );
// Fixed const c( 42.42f );
// Fixed const d( b );
//
// a = Fixed( 1234.4321f );
//
// std::cout << "a is " << a << std::endl;
// std::cout << "b is " << b << std::endl;
// std::cout << "c is " << c << std::endl;
// std::cout << "d is " << d << std::endl;
//
// std::cout << "a is " << a.toInt() << " as integer" << std::endl;
// std::cout << "b is " << b.toInt() << " as integer" << std::endl;
// std::cout << "c is " << c.toInt() << " as integer" << std::endl;
// std::cout << "d is " << d.toInt() << " as integer" << std::endl;
return 0;
}