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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

php - mysql multiple keyword search in any order -

unity3d - Problems porting a GLSL shadertoy shader to unity -