Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 09 / MyString (with move) / MyString.cpp
diff options
context:
space:
mode:
Commitd9b87730b24c23c7c58185f87b8834f44ff60dc3 (patch)
Author
 Angel Dimitriev <angel_dimitriev@abv.bg>
2022-05-16 14:19:24 +0300
Committer
 GitHub <noreply@github.com>
2022-05-16 14:19:24 +0300
Files5658bc350a2e27787fc8e9153c33261093e19985 /Sem. 09/MyString (with move)/MyString.cpp
Object-oriented_programming_FMI-d9b87730b24c23c7c58185f87b8834f44ff60dc3.tar
Object-oriented_programming_FMI-d9b87730b24c23c7c58185f87b8834f44ff60dc3.tar.gz
Object-oriented_programming_FMI-d9b87730b24c23c7c58185f87b8834f44ff60dc3.zip
Parent752971d9b8e629b1c6a83995c814078a4cf40ff6 (diff)
Update MyString.cpp
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Sem. 09/MyString (with move)/MyString.cpp2
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];