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

Username:   Password: 
 RegisterRegister   
 need help with "put" statement with quotations in them
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
noobsauce




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
[Gandalf]




PostPosted: 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
noobsauce




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

Thanks Mr. Green
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: