0
How to return highest character in string? C++
like if I type aaaaabbbcc and it return letter a?
2 Answers
+ 16
This can be very complex. Remember that string is character array. You may refer to this code and replace int array with string.
https://code.sololearn.com/cZeHYM44INje/?ref=app
I can also make another code with does this for string, but you may want to try it yourself first.
0
Thanks @Hatsy Rei.. Just getting the idea Thank you.