Question: c++ Write a program with a user-entered character string in a specific, user-selected character is replaced by '*'. In addition, both lowercase and uppercase letters
c++ Write a program with a user-entered character string in a specific, user-selected character is replaced by '*'. In addition, both lowercase and uppercase letters of the selected symbol, such as 'a' and 'A', are replaced.
Display the changed string and the number of replaced symbols on the screen.
Symbol substitution must occur in a self-written function with the following prototype: int replace_char (string &, char);
The string processing defined in string or ctype.h files must never be used in a task features!
Example of program output:
Enter a string of characters:
If you dO something well
Enter string:
IF you dO something well
Enter a character to replace with *: o
Modified string:
IF y*u d* s*mething well
3 symbols were changed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
