mirror of
https://github.com/ada-dmitry/prog.l_ada.git
synced 2026-09-24 09:10:14 +00:00
restruct 1
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
typedef struct tnode
|
||||
{
|
||||
int field;
|
||||
struct tnode *left;
|
||||
struct tnode *right;
|
||||
struct tnode *parent;
|
||||
} tree;
|
||||
|
||||
tree *init_root(tree *root, int field);
|
||||
tree *add_node(tree *root, int field);
|
||||
tree *find_node(tree *root, int field);
|
||||
tree *minim(tree *root);
|
||||
tree *maxim(tree *root);
|
||||
tree *findForDel(tree *root);
|
||||
tree *del_node(tree *root, int field);
|
||||
void preorder(tree *root);
|
||||
void inorder(tree *root);
|
||||
void postorder(tree *root);
|
||||
Reference in New Issue
Block a user