/[hs]/SepTree/septree.h
ViewVC logotype

Contents of /SepTree/septree.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jan 13 17:47:07 2003 UTC (16 years, 4 months ago) by jeremyd
Branch: MAIN
CVS Tags: RELEASE_1_0, HEAD
File MIME type: text/plain
Initial revision -- seems to work

1 //Jeremy Drake
2 //Period 2
3 //SepTree
4
5 #ifndef SEPTREE_H
6 #define SEPTREE_H
7
8 struct Node
9 {
10 int info;
11 Node * left;
12 Node * right;
13 Node() {left=NULL; right=NULL;info=0;}
14 Node(int i) {info=i;left=NULL;right=NULL;}
15 };
16
17 class SepTree
18 {
19 public:
20 void BuildTheDamnTree();
21 int CountNum(int key, Node *T=NULL);
22 void Seperate(Node *T=NULL);
23 private:
24 void Insert(int key, char dir, Node *T);
25 Node * myRoot;
26 };
27 #endif

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13