From d9b87730b24c23c7c58185f87b8834f44ff60dc3 Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Mon, 16 May 2022 14:19:24 +0300 Subject: Update MyString.cpp --- Sem. 09/MyString (with move)/MyString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Sem. 09/MyString (with move)/MyString.cpp') diff --git a/Sem. 09/MyString (with move)/MyString.cpp b/Sem. 09/MyString (with move)/MyString.cpp index a037d3d..1ca4762 100644 --- a/Sem. 09/MyString (with move)/MyString.cpp +++ b/Sem. 09/MyString (with move)/MyString.cpp @@ -98,7 +98,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