Question: 20 marks] (Replace strings) Write the following function that replaces the occurrence of a substring old_substring with a new substring new substring in the string
![20 marks] (Replace strings) Write the following function that replaces the](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4e12d651e6_46066f4e12cf3908.jpg)

20 marks] (Replace strings) Write the following function that replaces the occurrence of a substring old_substring with a new substring new substring in the string s. The function returns true if string s is changed, and otherwise, it returns false. bool replace_strings (string& s, const string& old_string, const string& new string) Write a test program that prompts the user to enter three strings, ie., s, old string, and new_string, and display the replaced string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
