summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/main.cc b/main.cc
new file mode 100644
index 0000000..ef15e6e
--- /dev/null
+++ b/main.cc
@@ -0,0 +1,29 @@
+#include <iostream>
+
+bool displayHello()
+{
+ bool result;
+ std::cin >> result;
+ return result;
+}
+
+bool coucouEveryone()
+{
+ bool result;
+ std::cin >> result;
+ return result;
+}
+
+int main()
+{
+ if (displayHello())
+ {
+ coucouEveryone();
+ }
+ if (!displayHello())
+ {
+ std::cout << "Mouhahahaha I am a villain!\n";
+ }
+ int abc;
+ return 0;
+}