From 7da5cae134b3f5dc0e3bc6641f2ae5364fa5f512 Mon Sep 17 00:00:00 2001 From: angeld55 Date: Tue, 24 May 2022 00:13:26 +0300 Subject: added check to MyString for length when input comes for a stream --- Sem. 10/Examples/MyString/MyString.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Sem. 10/Examples/MyString/MyString.h') diff --git a/Sem. 10/Examples/MyString/MyString.h b/Sem. 10/Examples/MyString/MyString.h index 17f9a01..9e300d6 100644 --- a/Sem. 10/Examples/MyString/MyString.h +++ b/Sem. 10/Examples/MyString/MyString.h @@ -9,6 +9,8 @@ class MyString void copyFrom(const MyString& other); void free(); + void concatFrom(const MyString& other); + public: MyString(); MyString(const char*); @@ -24,7 +26,6 @@ public: ~MyString(); size_t getSize() const; - void concat(const MyString& other); const char* c_str() const; -- cgit v1.3.1-23-gd82d