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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!