Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 rearranging strings
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Blade




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Mar 25, 2003 5:30 pm   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: