diff options
-rw-r--r-- | week-6/PuntContainer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/week-6/PuntContainer.cpp b/week-6/PuntContainer.cpp index 59b5fd7..e673472 100644 --- a/week-6/PuntContainer.cpp +++ b/week-6/PuntContainer.cpp @@ -1,3 +1,5 @@ +#include <memory> + #include "PuntContainer.h" #include "Punt.h" @@ -27,6 +29,7 @@ int PuntContainer::checkZ2(const Punt& punt1, const Punt& punt2) const { PuntContainer::PuntContainer() { this->puntRij = (Punt*) malloc(sizeof(Punt) * 10); + this->grootte = 0; } PuntContainer::~PuntContainer() { |