Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 02-types/tasks/02-modifyString.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <iostream>
#include <string>

// 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"};
modifyString(str);
Expand Down