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

Username:   Password: 
 RegisterRegister   
 Get Postal Code
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
relics1




PostPosted: Tue Dec 11, 2007 9:02 pm   Post subject: Get Postal Code

I'm beyond new to turing. Now this seems simple, but I'm too close to the problem and need a step back. I need an "Ah-Ha!" moment.

You input your postal code, and I need it to display the postal code.
But the get command needs to be able to get the postal code with or without the space in between. So "M9R4B6", "M9R 4B6".

This is one of the times where someone answers, and you think to yourself..."I'm an idiot"
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: Tue Dec 11, 2007 9:20 pm   Post subject: RE:Get Postal Code

Turing:
get foo :*


I'll leave you to figure out why this works.
relics1




PostPosted: Tue Dec 11, 2007 9:56 pm   Post subject: Re: Get Postal Code

Does it set the whole parameter as the value?
Clayton




PostPosted: Tue Dec 11, 2007 10:53 pm   Post subject: RE:Get Postal Code

Try it and see.
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  [ 4 Posts ]
Jump to:   


Style:  
Search: