Nick M
2010-12-07 17:23:17 UTC
#include
using namespace std;
int main()
{
void remove(char[], char);
char letter ;
const int MAX = 55;
char cstring[MAX];
cout << "Enter sentence and a letter will be removed\n";
cin.getline(cstring, MAX);
cout << "Enter letter to be removed";
letter = cin.get();
remove(cstring, letter);
cout << cstring << endl;
cin.ignore();
return 0;
}
void remove(char cstring[], char letter)
{
char temp;
for(int i = 0; cstring[i] != '\0'; i++)
{
if(cstring[i] == letter) cstring[i] =
}
}