Website Summary Files Commits Branches @commit @diff @stats
path: root / Week09 / Exercise03 / main.cpp
diff options
context:
space:
mode:
Commitb38346eebca9a007971af02fb3bb9472c5e16d0c (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-04-26 21:43:31 +0300
Committer
 Syndamia <kamen@syndamia.com>
2026-04-26 21:43:31 +0300
Files575a64089a17be271aec84683f426252d8f5d1f9 /Week09/Exercise03/main.cpp
oop-2025-solutions-b38346eebca9a007971af02fb3bb9472c5e16d0c.tar
oop-2025-solutions-b38346eebca9a007971af02fb3bb9472c5e16d0c.tar.gz
oop-2025-solutions-b38346eebca9a007971af02fb3bb9472c5e16d0c.zip
Parent7d98b664c9e459a08f2e6e6fa5b636686dfed554 (diff)
feat(Week09): Add solutions
1 files changed, 15 insertions, 0 deletions
-rw-r--r--Week09/Exercise03/main.cpp15
diff --git a/Week09/Exercise03/main.cpp b/Week09/Exercise03/main.cpp
new file mode 100644
index 0000000..087b05f
--- /dev/null
+++ b/Week09/Exercise03/main.cpp
@@ -0,0 +1,15 @@
+#include "String.h"
+#include <iostream>
+
+int main() {
+ String a = "Hello";
+ String b = "World";
+
+ String c = a + " " + b;
+
+ std::cout << c << std::endl;
+ std::cout << (c << b) << ' ' << (a >> c) << std::endl;
+ std::cout << c[String::IndexRange(2), 7] << std::endl;
+
+ return 0;
+}