Hamster, the program deals with parenthesis while dividing the first expression into subexpressions, for example if I have:
(3x-2)+(3x-1), the program creates
s1: 3x-2
s2: +
s3: 3x-1
now the problem is when the program must subdivide using that cycle expressions like s1 and s3 into smaller ones like
s1.1 3x
s1.2 -
s1.3 2
It does, but only for the first one, then it stops... it is probably something with the "return" with Im not sure if I have to use it, but if I delete it, the program runs forever lol...
here is my complete code since it wouldn't let me publish more than 9000chars here...
http://codeviewer.org/view/code:227a
My program does this
user inputs expression
expressions goes to analizar()
there it is divided into subexpressions and a for analizes if it needes more subexpressions, then it calls analizar again but with the subexpression, then it is supossed to finish with the new analizar() process and go back to the previous analizar() process to continue checking if the program gets another subexpression to subdivide more...
But it doesn't...
http://codeviewer.org/view/code:227a