diff --git a/ex01/src/Fixed.cpp b/ex01/src/Fixed.cpp index d9f27b5..b776b45 100644 --- a/ex01/src/Fixed.cpp +++ b/ex01/src/Fixed.cpp @@ -22,13 +22,13 @@ Fixed::Fixed(const Fixed& src) Fixed::Fixed(const int& src) { - std::cout << "Copy constructor called" << std::endl; + std::cout << "Int constructor called" << std::endl; this->_value = src << this->_nb_bits; } Fixed::Fixed(const float& src) { - std::cout << "Copy constructor called" << std::endl; + std::cout << "Float constructor called" << std::endl; this->_value = (int) roundf(src * (1 << this->_nb_bits)); } diff --git a/ex02/ex02 b/ex02/ex02 new file mode 100755 index 0000000..768f63b Binary files /dev/null and b/ex02/ex02 differ diff --git a/ex02/src/Fixed.cpp b/ex02/src/Fixed.cpp index 1685e59..1c316f6 100644 --- a/ex02/src/Fixed.cpp +++ b/ex02/src/Fixed.cpp @@ -22,13 +22,13 @@ Fixed::Fixed(const Fixed& src) Fixed::Fixed(const int& src) { - std::cout << "Copy constructor called" << std::endl; + std::cout << "Int constructor called" << std::endl; this->_value = src << this->_nb_bits; } Fixed::Fixed(const float& src) { - std::cout << "Copy constructor called" << std::endl; + std::cout << "Float constructor called" << std::endl; this->_value = (int) roundf(src * (1 << this->_nb_bits)); }