Computer Science Canada Quotes within quotes! |
Author: | Geminias [ Thu Nov 17, 2005 3:46 pm ] |
Post subject: | Quotes within quotes! |
how can you use quotes in a string? for instance if you needed to write " People who call themselves "artists" are gay" forget single quotes.. how can you get double quotes to work inside the string? |
Author: | beard0 [ Thu Nov 17, 2005 3:48 pm ] |
Post subject: | |
I don't program c, but I can all but guarantee that you use \" i.e. "Those that think that people who call themselves \"artists\" are gay, are homophobes." |
Author: | Tony [ Thu Nov 17, 2005 3:48 pm ] |
Post subject: | |
that's... an example ![]() anyways, escape characters.. such as \" |
Author: | Geminias [ Thu Nov 17, 2005 7:25 pm ] |
Post subject: | |
yay! thanks all |
Author: | md [ Thu Nov 17, 2005 10:35 pm ] |
Post subject: | |
you should really use a less provocative example... I mean really how hard would it have been... |
Author: | beard0 [ Thu Nov 17, 2005 10:42 pm ] |
Post subject: | |
Cornflake wrote: you should really use a less provocative example... I mean really how hard would it have been...
Yeah, I don't think he picked up on my comment. |