Question: C++: Use string: RCBC 3+1 to create a new CodeBlocks project using loops, the string class, and a reference variable. Write a function that accepts
C++: Use string: "RCBC 3+1" to create a new CodeBlocks project using loops, the string class, and a reference variable. Write a function that accepts a string object as its argument. The function should return the character that appears most frequently in the string. The function should also use a reference variable to return the number of times the most frequent character appeared in the string object. Demonstrate the function in a program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
