The program should find and delete all vowels in a word that is user entered. This is what I have so far and I know it should be essentially this format I just don't know how to set enteredword and word equal to each other. thanks.
#include <string>
#include <iostream>
using namespace std;
void vowelremover(string&);
int main ()
{
string word;
cout << "Enter a word of which you want the vowels removed: ";
cin >> word;
vowelremover(word);
cout << "The word without vowels is: " << word << endl;
return 0;
}
string enteredword;
void vowelremover (string& enteredword)
{
int posvowel;
well it doesn't work... i was wondering how to get enteredword to equal word and also the enteredword.find("a,e,i,o,u,A,E,I,O,U"); doesnt work cause I think you can only evaluate one character at a time.