root/week1oplossing/IntLijst.h
| 2 | 4 | ||
|---|---|---|---|
2 | #include "GameEngine.h" | 2 | #include "GameEngine.h" |
3 | class IntLijst | 3 | class IntLijst |
4 | { | 4 | { |
5 | friend tstringstream& operator<<(tstringstream& stream, IntLijst& lijst); | ||
6 | friend tstring operator+(tstring string, IntLijst& lijst); | ||
7 | |||
8 | |||
5 | public: | 9 | public: |
6 | IntLijst(); | 10 | IntLijst(); |
7 | 11 | ||
... | ... | ||
30 | bool operator==(const IntLijst& p); | 34 | bool operator==(const IntLijst& p); |
31 | bool operator!=(const IntLijst& p); | 35 | bool operator!=(const IntLijst& p); |
32 | void operator>>(tstringstream &p); | 36 | void operator>>(tstringstream &p); |
37 | int& operator[] (int index); | ||
33 | private: | 38 | private: |
34 | void vergrootArray(); | 39 | void vergrootArray(); |
35 | 40 | ||
... | ... | ||
39 | 44 | ||
40 | 45 | ||
41 | }; | 46 | }; |
47 |
Download diff