Talk:SE250:lab-8:mgha023

From Marks Wiki
Revision as of 10:43, 3 November 2008 by Mark (Sọ̀rọ̀ | contribs) (2 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);