diff options
| author | Dominik Kaiser | 2025-02-13 14:47:48 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-02-13 14:47:48 +0100 |
| commit | b013c2457c45d369c9fc9a854caacdffd414ca25 (patch) | |
| tree | c192fe7a2ef49d33e4587099826d8806ef3a0a39 /ex00/main.cpp | |
| parent | 80234b81fd22f737d3c86f5993745b1c7053a56a (diff) | |
| download | cpp02-b013c2457c45d369c9fc9a854caacdffd414ca25.tar.gz cpp02-b013c2457c45d369c9fc9a854caacdffd414ca25.zip | |
Add main and fix format
Diffstat (limited to 'ex00/main.cpp')
| -rw-r--r-- | ex00/main.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ex00/main.cpp b/ex00/main.cpp index d4d0a52..9045973 100644 --- a/ex00/main.cpp +++ b/ex00/main.cpp @@ -6,8 +6,21 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/12 17:04:41 by dkaiser #+# #+# */ -/* Updated: 2025/02/12 17:05:22 by dkaiser ### ########.fr */ +/* Updated: 2025/02/13 14:29:21 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ -int main(void) {} +#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; +} |
