Print a string variable with its special characters
<p>When I want to special characters in a string I should use "\":</p>

<pre><code>std::string text("item \t new_item\n")
</code></pre>

<p>But, if I print this string, obviously, it will print: </p>

<pre><code>item      new_item
</code></pre>

<p>Is there a way set std::cout to print all special characters:</p>

<pre><code>item \t new_item \n
</code></pre>