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/Exercise2.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 week08/Exercise2.h (limited to 'week08/Exercise2.h') diff --git a/week08/Exercise2.h b/week08/Exercise2.h new file mode 100644 index 0000000..7a9e6e2 --- /dev/null +++ b/week08/Exercise2.h @@ -0,0 +1,22 @@ +class Person { + char* firstName; + char* middleName; + char* lastName; + unsigned id; + + void free(); + void copyFrom(const Person& other); + +public: + Person(); + ~Person(); + Person(const Person& other); + Person& operator=(const Person& other); + Person(Person&& other); + Person& operator=(Person&& other); + + void SaveText(const char* outFileName); + void LoadText(const char* inFileName); + void SaveBinary(const char* outFileName); + void LoadBinary(const char* inFileName); +}; -- cgit v1.2.3