[SOLVED] Putting quotation marks in a text string

I want my text to include quotation marks, but those are used to indicate the beginning and end of the text itself. So how would I get it to display quotation marks in the middle of a line of text?

I might be wrong, but in most other languages you just need to escape them.

string mytext = "Hello world, have a \"great\" day";

would print out

Hello world, have a "great" day
1 Like

Simple questions get simple solutions. Thanks a ton, this worked!

Privacy & Terms