title: Define a c++ string as "\"
body: <p>I need a string that only contains <code>"\"</code>. But this doesn't seem to work since (as far as I get it) the compiler sees it as a command instead of a simple string without any meaning.</p>
  
  <p>As you can probably tell, I'm still fairly inexperienced, so aplogies if I'm not that up to speed.</p>
  
  <p>I already tried to use a char, but that also didn't work.</p>
  
  <p>What I want is something like this:
  <code>std::string mystr = "\";</code></p>
  
  <p>I get this error message: "A string constant cannot be continued on a second line." Makes sense to me, but doesn't really help me because I'm not even trying to define a string over 2 lines.</p>