Programming a calculator
im have to do a project, kind of a calculator... The user can input thins like:
-(-((-(8*6)))) or (((-(8*6)/(9*5)))), you can see that there are mor parenthesis in both expressions, so my question is, can someone tell me a way to eliminate the parenthesis that are not necessary o how can check with all the parethesis the correct hierarchy to do the operation... thanks for your help, oh by the way im programming in C...
Programming a calculator
===

im have to do a project, kind of a calculator... The user can input thins like:
-(-((-(8*6)))) or (((-(8*6)/(9*5)))), you can see that there are mor parenthesis in both expressions, so my question is, can someone tell me a way to eliminate the parenthesis that are not necessary o how can check with all the parethesis the correct hierarchy to do the operation... thanks for your help, oh by the way im programming in C...