summaryrefslogtreecommitdiff
path: root/algo1w3/NAWLink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'algo1w3/NAWLink.cpp')
-rw-r--r--algo1w3/NAWLink.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/algo1w3/NAWLink.cpp b/algo1w3/NAWLink.cpp
new file mode 100644
index 0000000..776d649
--- /dev/null
+++ b/algo1w3/NAWLink.cpp
@@ -0,0 +1,13 @@
+#include "NAWLink.h"
+#include "NAW.h"
+
+NAWLink::NAWLink() { }
+
+NAWLink::NAWLink(const NAW& value, NAWLink* next) {
+ this->value = new NAW(value);
+ this->next = next;
+}
+
+NAWLink::~NAWLink() {
+ delete this->value;
+}