SE250:lab-6:rthu009

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

Lab 6

Writing the main function

This function stores some values in the binary tree.

int main(void){

int i;
Node *parent = empty;
double num[] = {6,14,4,8,12,16};
parent= mkNode(10,parent );
for (i=0; i<=5; i++){
insert(num[i], &parent );
}
show_tree(0,parent);
}