0

How to return highest character in string? C++

like if I type aaaaabbbcc and it return letter a?

14th Mar 2017, 2:45 PM
Daphnyzyb Pelaez
Daphnyzyb Pelaez - avatar
2 Réponses
+ 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.
14th Mar 2017, 2:50 PM
Hatsy Rei
Hatsy Rei - avatar
0
Thanks @Hatsy Rei.. Just getting the idea Thank you.
14th Mar 2017, 2:52 PM
Daphnyzyb Pelaez
Daphnyzyb Pelaez - avatar