diff options
Diffstat (limited to 'cpp02/ex00/main_DO_NOT_TURN_ME_IN.cpp')
| -rw-r--r-- | cpp02/ex00/main_DO_NOT_TURN_ME_IN.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cpp02/ex00/main_DO_NOT_TURN_ME_IN.cpp b/cpp02/ex00/main_DO_NOT_TURN_ME_IN.cpp new file mode 100644 index 0000000..494dbb3 --- /dev/null +++ b/cpp02/ex00/main_DO_NOT_TURN_ME_IN.cpp @@ -0,0 +1,27 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* main.cpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/04/13 11:51:15 by charles #+# #+# */ +/* Updated: 2020/04/13 11:51:16 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include <iostream> +#include "Fixed.hpp" + +int main(void) +{ + Fixed a; + Fixed b(a); + Fixed c; + + c = b; + std::cout << a.getRawBits() << std::endl; + std::cout << b.getRawBits() << std::endl; + std::cout << c.getRawBits() << std::endl; + return 0; +} |
