#include #include #include #include int main() { // Example vowel list (can be any set of vowel characters) std::vector vowels = {'a','e','i','o','u','A','E','I','O','U'}; std::string s; std::cout << "Enter a string: "; std::getline(std::cin, s); int count = 0; for (char c : s) { // check if c is in the vowels vector if (std::find(vowels.begin(), vowels.end(), c) != vowels.end()) { ++count; } } std::cout << "Number of vowels: " << count << '\n'; return 0; }