Functions in C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Functions in C++

I am trying to write a code that replaces all weird signs in a string with underscore. However, it's not runnings https://code.sololearn.com/co7zmXJDtPmB/?ref=app

3rd Dec 2020, 1:56 AM
Reynolds Onyango
Reynolds Onyango - avatar
1 Answer
+ 6
use `std::replace_if` instead of `std::replace`.
3rd Dec 2020, 2:01 AM
Schindlabua
Schindlabua - avatar