I wanna delete the vowel character from my string.. like if the input is apple the output should be ppl, another input for example saad the output should be sd.
how can I do that??
#include <iostream>
#include <string>
usingnamespace std;
int main()
{
string myString = "This is a simple string.";
// 1st param is position in string.
// sencond is how many chars to remove
// 1st letter is at 0
myString.erase(0, 5); // remove "This "
cout << myString;
return 0;
}