Startpunkt
This commit is contained in:
19
tree.h
Normal file
19
tree.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <fstream>
|
||||
|
||||
class treeClass
|
||||
{
|
||||
public:
|
||||
treeClass();
|
||||
~treeClass(){};
|
||||
ptrType root;
|
||||
ptrType seek(ptrType root, dataType item);
|
||||
bool isEmpty();
|
||||
void insert(ptrType &root,dataType item);
|
||||
void del(ptrType &root,dataType item);
|
||||
void delRoot(ptrType &root);
|
||||
void delLeft(ptrType &root, dataType &item);
|
||||
void preOrder(ptrType treeNode);
|
||||
void inOrder(ptrType treeNode);
|
||||
void postOrder(ptrType treeNode);
|
||||
void save(ptrType root, std::fstream &fil);
|
||||
};
|
||||
Reference in New Issue
Block a user