#isVowel

9 messages · Page 1 of 1 (latest)

paper jay
#

Write a value-returning function, isVowel, that returns the value true if a given character is a vowel and otherwise returns false.

lucid bladeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

still pilot
#

So... what's your question?

paper jay
#

How do I output whether the input is a vowel or not?

sonic atlas
#
bool isVowel(char c) {
    return (0x208222>>(c&0x1f))&1;
}
tidal turret
#

bool isVowel (char a){
if (a == 'a' | | a == 'e' | | a== 'i' || a == 'o' | | a == 'u'){
return true;
}

return false;

}

tough obsidian
#
bool isVowel(char a) {
    return a == 'a' | |  a == 'e' | | a== 'i' || a == 'o' | | a == 'u';
}
#

@tidal turret @paper jay

lucid bladeBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.