summaryrefslogtreecommitdiff
path: root/6p44.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-09-12 15:15:45 +0200
committerOskar <[email protected]>2024-09-12 15:15:45 +0200
commit8644ec6252d2ec44d8a549253049f3a0de2c9494 (patch)
tree31cf3a8f3271de5d29993d70f68be74822b2588e /6p44.cpp
parent13c97461fde19829569dbe10f53322fef5909b83 (diff)
more
Diffstat (limited to '6p44.cpp')
-rw-r--r--6p44.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/6p44.cpp b/6p44.cpp
new file mode 100644
index 0000000..06fb402
--- /dev/null
+++ b/6p44.cpp
@@ -0,0 +1,19 @@
+#include <iostream>
+
+/*
+ *
+ * 6.44
+ *
+ *
+ */
+
+inline bool isShorter(const std::string &s1, const std::string &s2) {
+
+ return s1.size() < s2.size();
+}
+
+int main () {
+
+ std::cout << (isShorter("1234", "12345") ? "True" : "False") << std::endl;
+ return 0;
+}