Skip to main content

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

Back to lesson: Practice: References: borrow and write through