• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding Elements to an Expression Tree  RSS feed

 
Zoy Ume
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to create an Expression tree which extends a linkedBinaryTree but my code seems to not store all the values from a given expression into the tree.

These are the constructors of the ExpressionTree class:




And this is the code to store the values that were first put into two different links. One with numeric values and another with operators.
Parser in an arithmetic expression.



}

Im quite confused, Any sort of help will be appreciated! Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!