Im starting to learn about bool operators and decided to write a program to see if a letter is a vowel or not. If its a vowel it returns true, if not returns false. This is the program i've written
#include <iostream>
using namespace std;
bool isletteraVowel(string str) {
bool status = true;
if(str == "A" || str == "E" || str == "I" || str == "O" || str == "U" ) {
status = true;
} else if (str == "C") {
status = false;
}
return status;
}
int main() {
isletteraVowel("C");
}
This problem complies properly, however, it returns nothing. The only output i recieve is
"[Done] exited with code=0 in 3.719 seconds"
Im unsure as it why nothing is returning.