Thu Nov 15, 2012 6:44 pm
int main()
{
string str;
void removeVowels(string str);
cout << "Enter a string: ";
cin >> str;
cout << endl;
cout << "The new string is: " << removeVowels << endl;
cout << "\nThe stringafter the function is: " << str << endl;
return 0;
}
bool isVowel(char ch)
{
if ((ch=='A')||(ch=='E')||(ch=='I')||(ch=='O')||(ch=='U')
||(ch=='a')||(ch=='e')||(ch=='i')||(ch=='o')||(ch=='u'))
{
cout << isVowel << endl;
return true;
}
else
{
return false;
}
{
cout << str.substr(isVowel) << endl;
}
return 0;
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.