Check out example codes for "is vowel c++". It will help you in understanding the concepts better.

Code Example 1

// c is a char
auto isLowercaseVowel = (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u');
auto isUppercaseVowel = (c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U');

Learn ReactJs, React Native from akashmittal.com