Check if character equals \ in C++
<p>I'm trying to see if a character <code>c</code> equals <code>\</code></p>

<pre><code>if (c == '\')
 //do something
</code></pre>

<p>I don't know exactly how this is called but everything after \ turns in a character string.</p>