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?

9th May 2020, 6:29 AM
Epsilon ļø»ā•¦ĢµĢµĶ‡ĢæĢæĢæĢæā•¤ā”€ā”€
Epsilon ļø»ā•¦ĢµĢµĶ‡ĢæĢæĢæĢæā•¤ā”€ā”€ - avatar
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
9th May 2020, 6:42 AM
Arsenic
Arsenic - avatar