|
just an idea ur comparing letters right...well u can put the alphabet in an array of 26 and using a for loop u can make it take each letter in ur string and compare it to the next using a nested second for loop.
Then create urself a c3 empty string and make some ifs and elses that will replace the char stored everytime it finds a char with a higher index.
Set your for loop to do this 26 times.
That method should work fine since it covers any range of Strings u might input.
__________________
<span style='font-family:Courier'><span style='font-size:12pt;line-height:100%'><span style='color:orange'>☼☼☼ Just kill em all, and let God sort em out. ☼☼☼</span></span></span>
|