Practice ยท 2 of 3
Borrow, don't copy
Implement int count_vowels(const std::string& text) taking the string by const& (no copy) and returning the number of vowels a e i o u (case-insensitive).
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: References: borrow and write through