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

Username:   Password: 
 RegisterRegister   
 putting quotation marks
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rollerdude




PostPosted: Wed Feb 21, 2007 1:43 pm   Post subject: putting quotation marks

example put " he said "blah blah blah" "

how would i get it to do that without syntax errors? or any other errors for that matter?
Sponsor
Sponsor
Sponsor
sponsor
bugzpodder




PostPosted: Wed Feb 21, 2007 1:54 pm   Post subject: RE:putting quotation marks

umm try

put "blah \" "
if that doesnt work, figure out the ord number of " and put it as a char.
HellblazerX




PostPosted: Wed Feb 21, 2007 1:57 pm   Post subject: Re: putting quotation marks

Use the chr () function, the ASCII value for " is 34.
Turing:
put "he said " + chr (34) + "blah blah blah" + chr(34)
ericfourfour




PostPosted: Wed Feb 21, 2007 6:16 pm   Post subject: RE:putting quotation marks

A list:

\\ = \
\" = "
\' = '
\t = tab
\n = newline

Use \". It is the simplest way.
rollerdude




PostPosted: Thu Feb 22, 2007 2:35 pm   Post subject: Re: putting quotation marks

thnx
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  [ 5 Posts ]
Jump to:   


Style:  
Search: