Init ex02

This commit is contained in:
2025-09-10 23:58:23 +02:00
parent 9be6499649
commit 9df8240460
4 changed files with 251 additions and 0 deletions

31
ex02/main.cpp Normal file
View File

@@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/10 21:57:38 by aortigos #+# #+# */
/* Updated: 2025/09/10 22:26:59 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#include "Fixed/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);
}