[SOLVED] 代写 #ifndef _TREE_H

30 $

File Name: 代写_#ifndef__TREE_H.zip
File Size: 207.24 KB

SKU: 8344320664 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


#ifndef _TREE_H
#define _TREE_H

#include
using namespace std;

// Define a structure to be used as the tree node
struct TreeNode
{
intKey;
floatfValue;
intiValue;
char cArray[7];
TreeNode *left;
TreeNode *right;
};

class Tree
{
private:
TreeNode *root;

public:
Tree();
~Tree();
bool isEmpty();
TreeNode *SearchTree(int Key);
bool Insert(TreeNode *newNode);
bool Insert(int Key, float f, int i, char *cA);
bool Delete(int Key);
void PrintOne(TreeNode *T);
void PrintTree();
private:
void ClearTree(TreeNode *T);
TreeNode *DupNode(TreeNode * T);
void PrintAll(TreeNode *T);
};

#endif

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 代写 #ifndef _TREE_H
30 $