-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBST_Menu.h
30 lines (26 loc) · 846 Bytes
/
BST_Menu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// BST_Menu.h
// NasdaqTechDB
//
// Author: Jenny
//
// Description:
// This is the header file where
// the menu, search and display functions are added from
// the abstract BST ADT.
#ifndef __NasdaqTechDB__BST_Menu__
#define __NasdaqTechDB__BST_Menu__
#include <stdio.h>
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include "CompanyObject.h"
#include "BinarySearchTree.h"
BinarySearchTree<CompanyObject> *buildCompanyTree(string fileName, int keyNumber);
void displayCompany(CompanyObject &company);
void displayIndentedTree(CompanyObject &company, int level);
void BST_Menu(int keyNumber,BinarySearchTree<CompanyObject>* tree2Ptr);
void BSTSearchOption(int keyNumber, BinarySearchTree<CompanyObject>* tree2Ptr);
void displayBSTMenu();
#endif /* defined(__NasdaqTechDB__BST_Menu__) */