Question: Write a recursive function named lettersOnly that accepts a string str as a parameter and returns a string with the same characters as str, in


Write a recursive function named lettersOnly that accepts a string str as a parameter and returns a string with the same characters as str, in the same order, but excluding any characters that are not alphabetic letters from A-Z, case-insensitive. For example, lettersOnly("{[[Friends, save $$$ with 'Geico' !!]]}") should return "Friends savewithGeico". Complete the following file: lettersOnly.cpp #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
