Mercurial > baum
annotate baum.h @ 24:69a7cf2f0c06 0.1
make dist includes now a stripped executable (should we include the exe at all?)
author | meillo@marmaro.de |
---|---|
date | Wed, 13 Feb 2008 22:04:12 +0100 |
parents | e2048e569891 |
children | f0856c177403 |
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); |
15
e2048e569891
insertLast returns now new inserted node; very dumb implementation for action_times
meillo@marmaro.de
parents:
10
diff
changeset
|
13 struct Node* 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 { |
9
c020b0d1cfca
read input is now finished in first version; removed init; added push and pull; name is now array instead of pointer
meillo@marmaro.de
parents:
3
diff
changeset
|
17 char name[256]; |
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 |
10 | 24 struct Stackitem { |
9
c020b0d1cfca
read input is now finished in first version; removed init; added push and pull; name is now array instead of pointer
meillo@marmaro.de
parents:
3
diff
changeset
|
25 struct Node* node; |
10 | 26 struct Stackitem* next; |
9
c020b0d1cfca
read input is now finished in first version; removed init; added push and pull; name is now array instead of pointer
meillo@marmaro.de
parents:
3
diff
changeset
|
27 }; |