Completed part 2

This commit is contained in:
Christopher Sanden
2025-11-06 22:48:14 +01:00
parent 8d533b9131
commit e761ac0e23
8 changed files with 282 additions and 100 deletions

View File

@@ -14,9 +14,10 @@ struct TPerson {
std::string firstName;
std::string lastName;
ENumStatus status;
int cabinSize = Utils::RandomInt(1, 4);
int cabinSize{};
TPerson(std::string f, std::string l, ENumStatus s) : firstName(std::move(f)), lastName(std::move(l)), status(s){}
TPerson();
TPerson(std::string , std::string , ENumStatus);
~TPerson() = default;
bool operator<(const TPerson& other) const
@@ -26,6 +27,7 @@ struct TPerson {
// same last name → compare first name
return firstName < other.firstName;
}
};