/[hs]/AdviceTree/adtree.h
ViewVC logotype

Contents of /AdviceTree/adtree.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 23 17:01:39 2003 UTC (16 years, 7 months ago) by jeremyd
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
works

1 //Jeremy Drake
2 //Period 2
3 //AdviceTree
4
5 #ifndef ADTREE_H
6 #define ADTREE_H
7 #include "apstring.h"
8 #include "apstack.h"
9
10 struct AdviceNode
11 {
12 apstring QorA;
13 AdviceNode * yes;
14 AdviceNode * no;
15 AdviceNode() {yes=NULL; no=NULL; QorA="";}
16 AdviceNode(apstring c) {QorA=c;yes=NULL;no=NULL;}
17 };
18
19 class AdTree
20 {
21 public:
22 void BuildTheDamnTree();
23 bool IsQuestionNode(AdviceNode *T);
24 void GiveAdvice(AdviceNode *T);
25 bool TracePath(AdviceNode *T, const apstring &movie, apstack<apstring> & pathStack);
26 private:
27 AdviceNode * myRoot;
28 };
29 #endif

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13