Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Treat chars as plain text?

 
J Gib
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Say i have a line of code:

How can I tell the compiler to treat the "()';" chars as plain text instead of recognizing them as part of the code?
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by J Gib:
How can I tell the compiler to treat the "()';" chars as plain text instead of recognizing them as part of the code?


Apart from the " all the characters will be treated as plain text. You need to escape the " with a \


should compile
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic