What is the C++ stream equivalent to perror?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3320898/c-alternative-to-perror">C++ alternative to perror()</a>  </p>
</blockquote>



<p>I can't find the stream equivalent to <code>perror</code>. Is there such a thing? I like the fact that I can call:</p>

<pre><code>perror("Error");
</code></pre>

<p>And it will fill in what <code>errno</code> is. Can I do this with streams?</p>
