This commit is contained in:
ada-dmitry
2023-05-23 17:54:18 +03:00
parent d8e322f93c
commit 096d8dea1a
2 changed files with 15 additions and 0 deletions
BIN
View File
Binary file not shown.
+15
View File
@@ -8,3 +8,18 @@ typedef struct tree
struct tree *left;
struct tree *right;
} Tree;
Tree *tnew(void);
Tree *leaf(char c);
Tree *maketree(char expr[], int first, int last);
unsigned char priority(char c);
int lastop(char expr[], int first, int last);
int calculate(Tree *root);
void showtree(Tree *root, int level);
Tree *create(unsigned char key);
Tree *add(Tree *root, unsigned char key);
Tree *search(Tree *root, unsigned char key);
Tree *min(Tree *root);
Tree *max(Tree *root);
Tree *nextdel(Tree *root);
void delete(Tree *del);