c - Comparing the characters -
i writing code solving arithmetic expression like:4+3-2*6*(3+4/2)
for need compare operators in string precedence like:
1. ( or ) 2. * or / 3. + or -
can tell me how compare 2 characters. ascii values not in order want!
use lookup table. if using ascii, 256 element table. index char.
Comments
Post a Comment