travail sur d02 ex02

This commit is contained in:
Hugo LAMY
2022-02-15 19:35:54 +01:00
parent 3e92c847fa
commit abb66473ab
5 changed files with 14 additions and 14 deletions

View File

@@ -3,18 +3,6 @@
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 ) );
//
@@ -28,5 +16,17 @@ int main( void ) {
//
// 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;
}