fork(14) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. inline bool IsVowel(char c) {
  5. return string("aeiou").find(c) != string::npos;
  6. }
  7.  
  8. int main() {
  9. cout << boolalpha << IsVowel('a') << endl;
  10. cout << boolalpha << IsVowel('b') << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3272KB
stdin
Standard input is empty
stdout
true
false