From 752971d9b8e629b1c6a83995c814078a4cf40ff6 Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Mon, 16 May 2022 14:19:01 +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 8d282d2..e404d7f 100644 --- a/Sem. 10/Examples/MyString/MyString.cpp +++ b/Sem. 10/Examples/MyString/MyString.cpp @@ -122,7 +122,7 @@ std::istream& operator>>(std::istream& stream, MyString& str) { delete[] str.str; char buff[1024]; - stream >> buff; + stream >> std::setw(1024) >> buff; str.size = strlen(buff); str.str = new char[str.size + 1]; -- cgit v1.3.1-23-gd82d