summaryrefslogtreecommitdiff
path: root/algo1w3/IntLinkedList.h
diff options
context:
space:
mode:
Diffstat (limited to 'algo1w3/IntLinkedList.h')
-rw-r--r--algo1w3/IntLinkedList.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/algo1w3/IntLinkedList.h b/algo1w3/IntLinkedList.h
new file mode 100644
index 0000000..996b5d9
--- /dev/null
+++ b/algo1w3/IntLinkedList.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include <stdlib.h>
+
+class IntLink;
+
+class IntLinkedList {
+public:
+ IntLinkedList();
+ virtual ~IntLinkedList();
+
+public: // vraag 3
+ virtual IntLink* getAt(int) const;
+ virtual bool setAt(int, int);
+
+ virtual int length1() const;
+ virtual int length2() const;
+
+public: // vraag 4
+ virtual void bubbleSort();
+
+public: // niet gevraagd wel handig... (zie vraag 1)
+ virtual void addToStart(int);
+ virtual void showAll() const;
+
+private:
+ size_t size = 0;
+ IntLink* next = nullptr;
+};
+