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

Username:   Password: 
 RegisterRegister   
 having issues outputting a string in reverse
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Vitani




PostPosted: Fri Oct 19, 2007 8:26 am   Post subject: having issues outputting a string in reverse

For this program, I have to get a word from the user and output it in reverse, but I am having issues doing this. I checked the turing site, the help option, everything, and I can't get it to work. It keeps telling me something about bounds, but I couldn't find any information to help me.

I am a serious n00b at Turing, can anyone please tell me what I did wrong?

var word : string
put "Enter your word"
put "To exit, enter 'stop'"
loop
get word
exit when word = "stop"
put word (*..1)
end loop
Sponsor
Sponsor
Sponsor
sponsor
Zampano




PostPosted: Fri Oct 19, 2007 8:29 am   Post subject: Re: having issues outputting a string in reverse

Your code seems to work perfectly for me, what version are you using?
Vitani




PostPosted: Wed Oct 24, 2007 8:10 am   Post subject: Re: having issues outputting a string in reverse

Whatever my welfare school is using....ugh.
But nevermind, I got it to work...I had to completely change it and add a variable and stupid stuff, but at least it runs.
Sorry to post this lol
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  [ 3 Posts ]
Jump to:   


Style:  
Search: