summaryrefslogtreecommitdiff
path: root/algo1w3/IntLinkedList.h
blob: 996b5d907a3b4a6a217c1815aa9674eac2c6e6f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
};