aboutsummaryrefslogtreecommitdiff
path: root/cpp02/ex02/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp02/ex02/main.cpp')
-rw-r--r--cpp02/ex02/main.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/cpp02/ex02/main.cpp b/cpp02/ex02/main.cpp
new file mode 100644
index 0000000..7625260
--- /dev/null
+++ b/cpp02/ex02/main.cpp
@@ -0,0 +1,30 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* main.cpp :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/04/13 11:51:15 by charles #+# #+# */
+/* Updated: 2020/10/19 12:42:08 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include <iostream>
+#include "Fixed.hpp"
+
+int main(void)
+{
+ Fixed a;
+ Fixed const b(Fixed(5.05f) * Fixed(2));
+
+ std::cout << a << std::endl;
+ std::cout << ++a << std::endl;
+ std::cout << a << std::endl;
+ std::cout << a++ << std::endl;
+ std::cout << a << std::endl;
+ std::cout << b << std::endl;
+ std::cout << Fixed::max(a, b) << std::endl;
+
+ return 0;
+}