title: C++ alternative to perror()
body: <p>I know we can use</p>
  <pre><code>perror()
  </code></pre>
  <p>in C to print errors. I was just wondering if there is a C++ alternative to this, or whether I have to include this (and therefore stdio.h) in my program. I am trying to avoid as many C functions as possible.</p>