From 15a2d35ac4160a9fd671d58f4e3fa31a83dfed1c Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Tue, 24 May 2022 00:14:42 +0300 Subject: Update MyString.cpp --- Sem. 10/Examples/MyString/MyString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Sem. 10/Examples/MyString/MyString.cpp') diff --git a/Sem. 10/Examples/MyString/MyString.cpp b/Sem. 10/Examples/MyString/MyString.cpp index 9ce6701..12171dd 100644 --- a/Sem. 10/Examples/MyString/MyString.cpp +++ b/Sem. 10/Examples/MyString/MyString.cpp @@ -56,7 +56,7 @@ MyString::MyString() { str = new char[1]; str[0] = '\0'; - size = 1; + size = 0; } MyString::MyString(const MyString& other) -- cgit v1.3.1-23-gd82d