aboutsummaryrefslogtreecommitdiff
path: root/cpp02/ex00/main_DO_NOT_TURN_ME_IN.cpp
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-10 09:26:04 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-10 09:26:04 +0100
commit9dd7a48967f99793b818f7362ac8e95717186774 (patch)
treed96d81af7cd6d36de7b5e01cab7688b60446f03a /cpp02/ex00/main_DO_NOT_TURN_ME_IN.cpp
parent631a8d7b6c214da48f7748e78fc8c308960414fb (diff)
downloadpiscine_cpp-9dd7a48967f99793b818f7362ac8e95717186774.tar.gz
piscine_cpp-9dd7a48967f99793b818f7362ac8e95717186774.tar.bz2
piscine_cpp-9dd7a48967f99793b818f7362ac8e95717186774.zip
Added more tests for cpp01/07
Diffstat (limited to 'cpp02/ex00/main_DO_NOT_TURN_ME_IN.cpp')
-rw-r--r--cpp02/ex00/main_DO_NOT_TURN_ME_IN.cpp27
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;
+}