Using the function find_first_of(), I want to make a program that would count the number of vowels of an inputted string. For example, an input of "hello world" would output "3".
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
#include <string>
#include <vector>
#include <cctype>
usingnamespace std;
int main() {
string text;
cout<<"Enter text";
getline(cin, text);
//using the find_first_of() function find how many vowels are in the string
cout<<"Number of vowels ";
}