Mercurial > baum
comparison baum.h @ 3:15d7d6b9766f
added input; added nextNode, lastNode, insertLast
author | meillo@marmaro.de |
---|---|
date | Thu, 07 Feb 2008 16:15:07 +0100 |
parents | 557fa4df2bcd |
children | c020b0d1cfca |
comparison
equal
deleted
inserted
replaced
2:557fa4df2bcd | 3:15d7d6b9766f |
---|---|
1 | 1 |
2 void logit(char* text); | 2 void logit(char* text); |
3 | 3 |
4 struct Node* newNode(char* name, unsigned char value); | |
5 void setValue(struct Node* node, unsigned char value); | |
6 void delete(struct Node* node); | |
7 void printNode(struct Node* node); | |
8 void printTree(struct Node* root); | |
9 void traverse(struct Node* root); | |
10 | |
11 struct Node* nextNode(struct Node* node); | |
12 struct Node* lastNode(struct Node* node); | |
13 void insertLast(struct Node* node, struct Node* insert); | |
4 | 14 |
5 | 15 |
6 struct Node { | 16 struct Node { |
7 char* name; | 17 char* name; |
8 char value; | 18 unsigned char value; |
9 struct Node* down; | 19 struct Node* down; |
10 struct Node* right; | 20 struct Node* right; |
11 }; | 21 }; |
12 | 22 |
13 | 23 |