diff options
Update MyString.cpp
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | Sem. 10/Examples/MyString/MyString.cpp | 2 |
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) |
