Files
42_INT_09_piscine_cpp/d02/ex02/main.cpp
2022-02-15 00:31:59 +01:00

33 lines
567 B
C++

#include "Fixed.hpp"
#include <iostream>
int main( void ) {
Fixed a(10);
Fixed b(5);
Fixed c;
std::cout << "a: " << a << '\n';
std::cout << "b: " << b << '\n';
if (a < b)
c = a;
else
c = b;
std::cout << "c: " << c << '\n';
// Fixed a;
// Fixed const b( Fixed( 5.05f ) * Fixed( 2 ) );
//
// std::cout << a << std::endl;
// std::cout << ++a << std::endl;
// std::cout << a << std::endl;
// std::cout << a++ << std::endl;
// std::cout << a << std::endl;
//
// std::cout << b << std::endl;
//
// std::cout << Fixed::max( a, b ) << std::endl
return 0;
}