baum

diff 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
line diff
     1.1 --- a/baum.h	Thu Feb 07 14:46:27 2008 +0100
     1.2 +++ b/baum.h	Thu Feb 07 16:15:07 2008 +0100
     1.3 @@ -1,11 +1,21 @@
     1.4  
     1.5  void logit(char* text);
     1.6  
     1.7 +struct Node* newNode(char* name, unsigned char value);
     1.8 +void setValue(struct Node* node, unsigned char value);
     1.9 +void delete(struct Node* node);
    1.10 +void printNode(struct Node* node);
    1.11 +void printTree(struct Node* root);
    1.12 +void traverse(struct Node* root);
    1.13 +
    1.14 +struct Node* nextNode(struct Node* node);
    1.15 +struct Node* lastNode(struct Node* node);
    1.16 +void insertLast(struct Node* node, struct Node* insert);
    1.17  
    1.18  
    1.19  struct Node {
    1.20  	char* name;
    1.21 -	char value;
    1.22 +	unsigned char value;
    1.23  	struct Node* down;
    1.24  	struct Node* right;
    1.25  };