diff options
Update MyString.cpp
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | Sem. 09/MyString (with move)/MyString.cpp | 2 |
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]; |
