
-----------------------------------
noobsauce
Tue Sep 23, 2008 6:49 pm

need help with &quot;put&quot; statement with quotations in them
-----------------------------------
Hi, I am a very new turing programmer, just a few classes into my grade 10 computer science class. 
I'd like to know how to put quotations in a put statement like:
put "I "want" to"
I've thought about doing it with const, but that would mean i have to set up lots and lots of constants and i am not sure whether it would work or not. Is there any other way to do it? Thanks

-----------------------------------
[Gandalf]
Tue Sep 23, 2008 6:54 pm

RE:need help with &quot;put&quot; statement with quotations in them
-----------------------------------
Yes, use an escape character (feel free to Google it for more info, and for more escaped characters.  In this case:
put "I \"want\" to"

Welcome to CompSci.ca. :)

-----------------------------------
noobsauce
Tue Sep 23, 2008 7:01 pm

Re: need help with &quot;put&quot; statement with quotations in them
-----------------------------------
Thanks :mrgreen:
