diff options
Diffstat (limited to 'week08/Exercise1.h')
| -rw-r--r-- | week08/Exercise1.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/week08/Exercise1.h b/week08/Exercise1.h new file mode 100644 index 0000000..1bd91d7 --- /dev/null +++ b/week08/Exercise1.h @@ -0,0 +1,20 @@ +class StreetList { + char **streetNames; // динамично-заделен масив от динамично-заделени низове + int lastUnused; + int allocated; + + void free(); + void copyFrom(const StreetList& other); + + void resize(); + +public: + StreetList(); + ~StreetList(); + StreetList(const StreetList& other); + StreetList& operator=(const StreetList& other); + StreetList(StreetList&& other); + StreetList& operator=(StreetList&& other); + + void Add(const char* newString); +}; |
