SE250:lab-8:hbar055
Jump to navigation
Jump to search
int main(void){ ParseTree* t= mkNode('-', mkNode('-', mkNode('a',0),mkNode('b',0),0),0); prefix_tree(t); tree_to_graph(t,"tree_to_graph.jpg"); return 0; }
Output:
-(-(a b))
int main(void){ ParseTree* t= mkNode('-', mkNode('-', mkNode('a',0),mkNode('b',0),0),0); prefix_tree(t); tree_to_graph(t,"tree_to_graph.jpg"); return 0; }
Output:
-(-(a b))