M
Mars
if I want to write a program to evaluate a formulae,
what kind of algorithm should I use??
for example,
input:
(2+3)*(3/4)+6-8
how to deal with the brackets??
need to use stacks??
Thx.......
?_?
what kind of algorithm should I use??
for example,
input:
(2+3)*(3/4)+6-8
how to deal with the brackets??
need to use stacks??
Thx.......
?_?