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

Username:   Password: 
 RegisterRegister   
 multiple word variables
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
blankout




PostPosted: Tue Mar 03, 2009 7:32 pm   Post subject: multiple word variables

is it possible to have a variable output that is more than one word in length?
for example:


var test : string
put "enter test here"
get test
put "here is the result", test


if i input an answer that is more than one word, i only receive the first word in my finished product.
please help. any feedback whatsoever will help.
Sponsor
Sponsor
Sponsor
sponsor
The_Bean




PostPosted: Tue Mar 03, 2009 7:41 pm   Post subject: Re: multiple word variables

just use a :* after the variable in the get line.

Turing:

var test : string
put "enter test here"
get test :*
put "here is the result", test
BigBear




PostPosted: Tue Mar 03, 2009 7:47 pm   Post subject: RE:multiple word variables

the :* means get all the characters entered

a :10 will get the first 10 characters entered
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: