Thread: Could Be Simple
View Single Post
Old Nov 14th, 2004, 12:46 PM   #4
T3FLoN
Newbie
 
Join Date: Nov 2004
Posts: 21
Rep Power: 0 T3FLoN is on a distinguished road
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>
T3FLoN is offline   Reply With Quote