Write a function Vowels that counts the number of vowels which appear in a string. You cannot use a loop; you must use the algorithms from the STL. You may use a lambda or a named helper function.
count_if.cpp
1 #include
2 #include
3
using namespace std;
4
5
6
int vowels (const string& s)
7 {
8
9
10
11
12 }