C++ Program to Remove given Character from the String

This C++ Program which removes a given character from the string. The program takes a string and the character to be removed as the input, uses standard library remove( ) algorithm for returning a range of elements with all the elements equal to the character removed which when passed to the standard library algorithm erase( ) erases the character from the entire string.

Here is source code of the C++ program which removes a given character from the string. The C++ program is successfully compiled and run on a Linux system. The program output is also shown below.