According to your code you can replace :
bool IsAVowel (char ch) {
{
if ((ch >= 'A' ) && (ch <= 'Z'))
return true;
else
return false;
}
by
bool isUpper(const char ch) {
return (ch >= 'A') && (ch <= 'Z');
}
3
solved how to write a c++ code to make function that returns true if initial as an argument is capital, returns false if not