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

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




PostPosted: Sat Jun 05, 2004 8:35 pm   Post subject: reversing string

Hi is there a way to reverse a string.... say "hi" and i want it to be "ih"
mainly because i am making a calculator and i need to know how to do this, because i am getting when i enter using keypad as the string 100 it comes "001" but i want "100" how can i reverse it thanks. i will post calculator when i am done! thanks!
Sponsor
Sponsor
Sponsor
sponsor
Paul




PostPosted: Sat Jun 05, 2004 9:23 pm   Post subject: (No subject)

code:

var word: string:= "word"
var drow: string:= ""
for decreasing a: length(word)..1
drow+= word(a)
end for
put drow
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: