summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-09-13 20:18:24 +0200
committerAotrix <[email protected]>2026-09-13 20:21:12 +0200
commit9340c1d894dc92d86035226370026408968472ac (patch)
tree4c774a6cabffcd63e254f280baa5256653e83cd2 /main.cc
First commit
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;
+}