title: Is there a way to output the backslash symbol in cout from a string?
body: <p>C++ code</p>
  
  <pre><code>fs::path pathToShow("C:\Windows\system.ini");
  cout &lt;&lt; "exists() = " &lt;&lt; fs::exists(pathToShow) &lt;&lt; "\n"
      &lt;&lt; "root_name() = " &lt;&lt; pathToShow.root_name() &lt;&lt; "\n"
      &lt;&lt; "root_path() = " &lt;&lt; pathToShow.root_path() &lt;&lt; "\n"
      &lt;&lt; "relative_path() = " &lt;&lt; pathToShow.relative_path() &lt;&lt; "\n"
      &lt;&lt; "parent_path() = " &lt;&lt; pathToShow.parent_path() &lt;&lt; "\n"
      &lt;&lt; "filename() = " &lt;&lt; pathToShow.filename() &lt;&lt; "\n"
      &lt;&lt; "stem() = " &lt;&lt; pathToShow.stem() &lt;&lt; "\n"
      &lt;&lt; "extension() = " &lt;&lt; pathToShow.extension() &lt;&lt; "\n";
  </code></pre>
  
  <p>Taken from an example from <a href="https://www.codingame.com/playgrounds/5659/c17-filesystem" rel="nofollow noreferrer">https://www.codingame.com</a></p>
  
  <p>Output</p>
  
  <pre><code>exists() = 0
  root_name() = "C:"
  root_path() = "C:"
  relative_path() = "Windowssystem.ini"
  parent_path() = "C:"
  filename() = "Windowssystem.ini"
  stem() = "Windowssystem"
  extension() = ".ini"
  Press any key to continue . . .
  </code></pre>
  
  <p>Does Visual Studio have an compiler/linker option to threat the '\' symbol as</p>
  
  <pre><code>\\
  </code></pre>
  
  <p>when outputing with cout or printf? Or is there another simple way without making an own function to manipulate the string (without too much hazzle)?</p>