Website Summary Files Commits Branches @commit @diff @stats
path: root / Week08 / Exercise01 / LaunchSite.cpp
diff options
context:
space:
mode:
Commit7d98b664c9e459a08f2e6e6fa5b636686dfed554 (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-04-08 10:42:51 +0300
Committer
 Syndamia <kamen@syndamia.com>
2026-04-08 10:42:51 +0300
Filesb2b6eddb0c6f582999ebb32c8dea2a01b477d747 /Week08/Exercise01/LaunchSite.cpp
oop-2025-solutions-7d98b664c9e459a08f2e6e6fa5b636686dfed554.tar
oop-2025-solutions-7d98b664c9e459a08f2e6e6fa5b636686dfed554.tar.gz
oop-2025-solutions-7d98b664c9e459a08f2e6e6fa5b636686dfed554.zip
Parent945f7e67d6ca8047c961457786fac5e2d9a13d82 (diff)
feat(Week08): Add solutions
1 files changed, 26 insertions, 0 deletions
-rw-r--r--Week08/Exercise01/LaunchSite.cpp26
diff --git a/Week08/Exercise01/LaunchSite.cpp b/Week08/Exercise01/LaunchSite.cpp
new file mode 100644
index 0000000..e326003
--- /dev/null
+++ b/Week08/Exercise01/LaunchSite.cpp
@@ -0,0 +1,26 @@
+#include "LaunchSite.h"
+#include <cstring>
+
+const char* LaunchSite::GetName() const {
+ return name;
+}
+
+void LaunchSite::SetName(const char* name) {
+ strncpy(this->name, name, 250);
+ this->name[250] = '\0';
+}
+
+double LaunchSite::GetMaxWeight() const {
+ return maxWeight;
+}
+void LaunchSite::SetMaxWeight(double weight) {
+ this->maxWeight = weight;
+}
+
+unsigned LaunchSite::GetMaxHeight() const {
+ return maxHeight;
+}
+
+void LaunchSite::SetMaxHeight(unsigned height) {
+ this->maxHeight = height;
+}