Feb 6, 2021 at 12:31pm UTC
Hello!
I would like to call a quote symbol as a string, nevertheless looks like the code is wrong for the compiler. Could someone show me my mistake? Below follow my code:
std::string double_quote= " " ";
Last edited on Feb 6, 2021 at 12:33pm UTC
Feb 6, 2021 at 12:34pm UTC
Hello DanielDeChamps,
A single double quote needs to be escaped to be considered a single quote.
Try this std::string double_quote= " \" " ;
.
Andy
Feb 6, 2021 at 12:47pm UTC
oooh yes! Therefore It is similar to \n to jump lines. Thank you so much.
Last edited on Feb 6, 2021 at 12:47pm UTC
Feb 7, 2021 at 12:02am UTC
I am reading all, thank you so much Handy Andy and Seeplus.
Last edited on Feb 7, 2021 at 12:03am UTC