0
How to replace strings in C++?
I get that C++ is very hard, but I don't why this one confuses me. Is there even a function in C++ that is similar to C#'s Replace() function?
1 Answer
+ 3
Yes there is a replace() function in C++ in algorithmĀ header, which is used to replace an old value with a new value in the given range of any container, be it string or a vector.
Hereš
https://code.sololearn.com/c26aiDuNgMji/?ref=app