From 6cda6a35647b5faad8914b66f277e5bf645bbfd2 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 3 Oct 2022 10:34:53 +0200 Subject: week 6 huiswerk toegevoegd --- week-6/main.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 week-6/main.cpp (limited to 'week-6/main.cpp') diff --git a/week-6/main.cpp b/week-6/main.cpp new file mode 100644 index 0000000..701ac33 --- /dev/null +++ b/week-6/main.cpp @@ -0,0 +1,23 @@ +#include "PuntContainer.h" + +#include + +int main() +{ + PuntContainer container; + + container.add( 1, 3, 4 ); + container.add( 3, 2, 1 ); + container.add( 2, 4, 2 ); + + container.sort2( &PuntContainer::checkZ2 ); + container.showAll(); + + container.sort2( &PuntContainer::checkY2 ); + container.showAll(); + + container.sort2( &PuntContainer::checkX2 ); + container.showAll(); + + return 0; +} -- cgit v1.2.3