From 7d98b664c9e459a08f2e6e6fa5b636686dfed554 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 8 Apr 2026 10:42:51 +0300 Subject: feat(Week08): Add solutions --- Week08/Exercise01/LaunchSite.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Week08/Exercise01/LaunchSite.cpp (limited to 'Week08/Exercise01/LaunchSite.cpp') 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 + +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; +} -- cgit v1.3.1-23-gd82d