How to add strange character to a string?

How to add " to a string without using content.push_back('"'); ?
Who is Participating?
string str = "test";

str += "\"";
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.