Talk:SE250:lab-8:mgha023
Jump to navigation
Jump to search
"One bracket taunted me for a whole 105minutes"
Thats about 3 minutes spent on each pixel of that bracket.
Regarding the error you got for the code
ParseTree* one = mkNode('>',mkNode('+',mkNode('a',0),mkNode ('b',0),'c'),0); prefix_tree(one);
You are missing another bracket in there >_<. As well as an ',0' in the '+' mkNode. Should be:
mkNode('>',mkNode('+',mkNode('a',0), mkNode('b',0), 0),'c',0);