Getting comparison between ! and user input
<p>I'm not sure why this is causing me trouble, I think I did it earlier in a test and it worked fine. </p>

<p>I get some user input using <code>cin</code> then pass this to another method as a char. I then just wanted to say:</p>

<pre><code>if(userInput == '!'){
     //do Something
}
</code></pre>

<p>But it didn't get it, so I tried defining a char as:</p>

<pre><code>const char myChar ='\u033f';


if(guess == myChar){
    exit(0);

}
</code></pre>

<p>But this just gives me a few compile errors even thou I'm getting that from another StackOverflow thread.</p>

<p>I must be misunderstanding something fundamental here, could someone enlighten me?</p>

<p>TIA</p>
