I'm trying to figure out the best way to read in/store the numbers and parentheses. I'm thinking stacks might work, but then I have the problem of discerning between the integers and the parentheses when reading them in. So basically I want to know if there is a way to determine whether a value is an int or a char when reading it in.
Thanks for the help!
EDIT: Thinking about it a little more, I could just put my whole tree into a char stack. But the question still remains, how do I determine whether what I pop is a number or a parenthesis?
EDIT: Or maybe it should be a queue...sorry I'm still in the thinking process as you can see. But still, same question.