From 2b22b0eb65d20f590f67ce21efe6ef71840f31f5 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 14 Feb 2023 23:25:13 +0100 Subject: week 3 deel 2 --- algo1w3/IntDoubleLink.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 algo1w3/IntDoubleLink.cpp (limited to 'algo1w3/IntDoubleLink.cpp') diff --git a/algo1w3/IntDoubleLink.cpp b/algo1w3/IntDoubleLink.cpp new file mode 100644 index 0000000..fb7d7a3 --- /dev/null +++ b/algo1w3/IntDoubleLink.cpp @@ -0,0 +1,19 @@ +#include "IntDoubleLink.h" + +IntDoubleLink::IntDoubleLink() { } +IntDoubleLink::~IntDoubleLink() { } + +IntDoubleLink::IntDoubleLink(int value, IntDoubleLink* prev, IntDoubleLink* next) { + this->value = value; + this->prev = prev; + this->next = next; +} + +IntDoubleLink* IntDoubleLink::getPrev() { + return this->prev; +} + +IntDoubleLink* IntDoubleLink::getNext() { + return this->next; +} + -- cgit v1.2.3