SE250:lab-8:rthu009
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 );