Computer Science Canada

need help with "put" statement with quotations in them

Author:  noobsauce [ Tue Sep 23, 2008 6:49 pm ]
Post subject:  need help with "put" 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

Author:  [Gandalf] [ Tue Sep 23, 2008 6:54 pm ]
Post subject:  RE:need help with "put" 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:
code:
put "I \"want\" to"


Welcome to CompSci.ca. Smile

Author:  noobsauce [ Tue Sep 23, 2008 7:01 pm ]
Post subject:  Re: need help with "put" statement with quotations in them

Thanks Mr. Green


: