Comparing the characters : <p>I am writing a code for solving arithmetic expression like:<code>4+3-2*6*(3+4/2)</code></p>

<p>For that I need to compare the operators in the string with precedence like:</p>

<pre><code>1. ( or )
2. * or /
3. + or -
</code></pre>

<p>Can someone tell me how to compare two characters. As their ASCII values are not in the order which I want!</p>
