summaryrefslogtreecommitdiff
path: root/ex00/main.cpp
diff options
context:
space:
mode:
authorDominik Kaiser2025-02-13 14:47:48 +0100
committerDominik Kaiser2025-02-13 14:47:48 +0100
commitb013c2457c45d369c9fc9a854caacdffd414ca25 (patch)
treec192fe7a2ef49d33e4587099826d8806ef3a0a39 /ex00/main.cpp
parent80234b81fd22f737d3c86f5993745b1c7053a56a (diff)
downloadcpp02-b013c2457c45d369c9fc9a854caacdffd414ca25.tar.gz
cpp02-b013c2457c45d369c9fc9a854caacdffd414ca25.zip
Add main and fix format
Diffstat (limited to 'ex00/main.cpp')
-rw-r--r--ex00/main.cpp17
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;
+}