SE250:lab-8:rthu009

From Marks Wiki
Revision as of 05:20, 3 November 2008 by Mark (Sọ̀rọ̀ | contribs) (6 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lab8 Rthu009

Task one

lol the task one doesnt work


Task two

ParseTree* expr = mkNode('-',  mkNode('-', mkNode('a', 0), mkNode('b', 0), 0), 0);
prefix_tree( expr );

The program didn't convert the .dot file!!!!!!!!


Task 3

mkNode('?', mkNode('>', mkNode('+', mkNode('a', 0), mkNode('b', 0), 0), mkNode('c', 0)), 
mkNode('*', mkNode('z', 0), mkNode('+', mkNode('y', 0), mkNode('b', 0), 0), 0),
mkNode('?',  mkNode('=', mkNode('a', 0), mkNode('2', 0) , 0 ),
mkNode('-', mkNode('x', 0), mkNode('y', 0) , 0 ),
mkNode('-', mkNode('y', 0), mkNode('x', 0) , 0 ) , 0 ));
prefix_tree( expr2 );