summaryrefslogtreecommitdiff
path: root/algo1w3/IntLink.h
diff options
context:
space:
mode:
Diffstat (limited to 'algo1w3/IntLink.h')
-rw-r--r--algo1w3/IntLink.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/algo1w3/IntLink.h b/algo1w3/IntLink.h
new file mode 100644
index 0000000..ce8c916
--- /dev/null
+++ b/algo1w3/IntLink.h
@@ -0,0 +1,16 @@
+#pragma once
+
+class IntLink {
+public:
+ IntLink();
+ IntLink(int, IntLink*);
+ virtual ~IntLink();
+
+private:
+ IntLink* next = nullptr;
+ int value = 0;
+
+private:
+ friend class IntLinkedList;
+};
+