Question: In C++ Please! Given an input string on one line and two characters on the next line, replace the first character on the second line

In C++ Please!

Given an input string on one line and two characters on the next line, replace the first character on the second line of input with the second character provided.

In C++ Please! Given an input string on one line and twocharacters on the next line, replace the first character on the secondline of input with the second character provided. Given an input string

Given an input string on one line and two characters on the next line, replace the first character on the second line of input with the second character provided. An example will make this clearer..... Sample input: His name is Steve and he's a good dude. S $ Sample output: His name i$ Steve and he's a good dude. You may not find the character in the input so no changes are made. main.cpp Load default template... 1 /* This assignment will ask the student to search an input string for 2 a specific character and replace that character with another character. 3 There will be zero or more existances of that character in the 4 input string. */ 5 6 #include 7 #include 8 using namespace std; 9 10 int main() 11 { 12 char lineOfText[80]; 13 char searchChar, replaceChar; 14 char* ptr ToChar = nullptr; 15 16 cin.getline(lineOfText, 80); 17 cin >> searchChar >> replaceChar; 18 19 7/Place your code here 20 Houtout modified line of toxt may not chance 21 19 //Place your code here 20 21 22 23 } 1/output modified line of text (may not change) cout

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!