Question: (must be in English and C++ Data type string ) Write a C++ program that asks the user to enter a string. After that, the
(must be in English and C++ Data type string ) Write a C++ program that asks the user to enter a string. After that, the program should ask for another string in a variable named "str new Take another string input in the variable named "str old. In the end, the program should replace the "str new with str old'. In the end the program prints the update string
Sample input :
Please enter a string: Java programming is great fun! Enter the word to replace: Java Enter the word to replace with: C++
Sample Output;
C++ programming is great fun!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
