32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* main.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/11/19 16:32:27 by adjoly #+# #+# */
|
|
/* Updated: 2024/11/19 16:40:38 by adjoly ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "Fixed.hpp"
|
|
#include <iostream>
|
|
|
|
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;
|
|
}
|