Computer Science Canada

multiple word variables

Author:  blankout [ 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.

Author:  The_Bean [ 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

Author:  BigBear [ 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


: