/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/06/20 10:07:23 by narnaud #+# #+# */ /* Updated: 2022/06/23 09:47:47 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #include "Fixed.hpp" int main(void) { 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; }