From fd0d30dbb81bf27f9b9c127795d7c02f20b7cb95 Mon Sep 17 00:00:00 2001 From: Konrad Legutko Date: Wed, 26 Aug 2026 19:12:19 +0000 Subject: [PATCH] 02-modifyString task --- 02-types/tasks/02-modifyString.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/02-types/tasks/02-modifyString.cpp b/02-types/tasks/02-modifyString.cpp index d6bce962..7bef4245 100644 --- a/02-types/tasks/02-modifyString.cpp +++ b/02-types/tasks/02-modifyString.cpp @@ -1,8 +1,10 @@ #include #include -// TODO: Implement modifyString() -// It should modify passed string to text "Other string" +void modifyString(std::string& str) +{ + str = "Other string"; +} int main() { std::string str{"Some string"};