mirror of
https://github.com/ada-dmitry/prog.l_ada.git
synced 2026-09-24 09:10:14 +00:00
resort
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include <stdio.h>
|
||||
#include <stdio.h>
|
||||
#include "head.h"
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
tree *root=NULL;
|
||||
root = init_root(root, 65);
|
||||
print_tree(root);
|
||||
printf("\n");
|
||||
root=del_node(root, 65);
|
||||
print_tree(root);
|
||||
printf("\n");
|
||||
root = add_node(root, 70);
|
||||
root = add_node(root, 66);
|
||||
root = add_node(root, 68);
|
||||
root = add_node(root, 71);
|
||||
root = add_node(root, 67);
|
||||
root = add_node(root, 72);
|
||||
print_tree(root);
|
||||
printf("\n");
|
||||
root = del_node(root, 66);
|
||||
print_tree(root);
|
||||
printf("\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user