Computer Science Canada

rearranging strings

Author:  Blade [ Tue Mar 25, 2003 4:21 pm ]
Post subject:  rearranging strings

if a user inputs a word... how can you rearrange it... as an example... a user inputs "snake", how could i change the letters around however i want?

Author:  Tony [ Tue Mar 25, 2003 5:30 pm ]
Post subject: 

code:

for i:1..length(word)
letter(i):=word(i)
end for


where word is word and letter() is an array of string(1).

then you can just rearange array items Very Happy


: