Using what you have learned about value-returning functions, create one of your own named isVowel that returns the value true if a character is a vowel and otherwise returns false. Also write a program to test your function.
my code:
#include<iostream>
#include<string>
bool isvowel(char x )
{
if ((x =='a' )||(x == 'u')||(x=='e')||(x=='o')||(x== 'i') )
return true ;
else
return false ;
}
int main()
{
std::string testString("isVowel");
int numVowels(0);