Files
42_INT_09_piscine_cpp/d02/ex02/main.cpp
2022-02-15 19:35:54 +01:00

33 lines
567 B
C++

#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
Fixed c(10);
Fixed d(5);
Fixed e;
std::cout << "c: " << d << '\n';
std::cout << "d: " << c << '\n';
if (c < d)
e = c;
else
e = d;
std::cout << "e: " << e << '\n';
return 0;
}