Strings being multiple words long
Author |
Message |
Razgriz

|
Posted: Fri Jun 03, 2011 11:40 pm Post subject: Strings being multiple words long |
|
|
What is it you are trying to achieve?
I'm trying to get a string to accept multiple words without the second word bumping into the next line. I used to know, but I can't for the life of me remember. I've looked around the forum to no avail, and I'm at a loss, considering I'm sure it's basic and there're a million replies... For that matter, my turing reference documentations don't seem to be working, so I'm even more stuck.
What is the problem you are having?
Strings accept the first word I type, the second word thuds it's way into the next string.
Describe what you have tried to solve this problem
I, for some reason, remember it involving an asterisk or periods... so I've tried varying combinations of the two to no success.
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Turing: |
var height, weight : string
put "How tall are you?"
get height %For height, example, if you entered "Six feet, three inches."
put "Okay, so you're ", height
put "Now, in pounds, how much do you weigh?"
get weight
put "So you're ", weight %The second word would end up here.
|
Please specify what version of Turing you are using
4.1.1 for Windows.
Again, I apologize for this thread, but I've searched the forum and haven't seen it myself, perhaps I didn't look hard enough, and my Turing documentations aren't showing up either, so this is all I could do. Thanks. |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Badsniper
|
Posted: Sat Jun 04, 2011 12:50 am Post subject: Re: Strings being multiple words long |
|
|
Here:
Turing: |
var words : string
put "enter some words"
get words : * % It's the ":*"
|
|
|
|
|
|
 |
Razgriz

|
Posted: Sat Jun 04, 2011 12:51 am Post subject: RE:Strings being multiple words long |
|
|
Thanks a -Lot.- You're a lifesaver/ KArma+ |
|
|
|
|
 |
|
|