Stupid C++ question about if-else
<p>I have this code:</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

int main()

{ char c='6';
    if(c == '+' || '-' || '*' || '^' || '/' || '%')
    {
        cout&lt;&lt;"good";
    }
    else {cout&lt;&lt;"bad";}
    return 0;
} 
</code></pre>

<p>I want to write "good" if the char is '+' or '-' etc, and write "bad" if the char is anything else.
But this code writes "good" always with any char. </p>

<p>Where is the problem? Thanks.</p>
