Mercurial > baum
annotate baum.h @ 6:ab87b154a96b
first tries for the read input function
author | meillo@marmaro.de |
---|---|
date | Fri, 08 Feb 2008 21:44:07 +0100 |
parents | 15d7d6b9766f |
children | c020b0d1cfca |
rev | line source |
---|---|
2 | 1 |
2 void logit(char* text); | |
3 | |
3
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
4 struct Node* newNode(char* name, unsigned char value); |
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
5 void setValue(struct Node* node, unsigned char value); |
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
6 void delete(struct Node* node); |
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
7 void printNode(struct Node* node); |
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
8 void printTree(struct Node* root); |
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
9 void traverse(struct Node* root); |
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
10 |
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
11 struct Node* nextNode(struct Node* node); |
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
12 struct Node* lastNode(struct Node* node); |
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
13 void insertLast(struct Node* node, struct Node* insert); |
2 | 14 |
15 | |
1
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
16 struct Node { |
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
17 char* name; |
3
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
18 unsigned char value; |
1
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
19 struct Node* down; |
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
20 struct Node* right; |
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
21 }; |
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
22 |
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
23 |