From f3406754705e508f57768d3d0d8e457ff5b7620c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 22 Apr 2024 15:43:49 +0300 Subject: [w8] Added exercise descriptions and solutions to ex 1-7 --- week08/Exercise1.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 week08/Exercise1.h (limited to 'week08/Exercise1.h') 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); +}; -- cgit v1.2.3