SymbolTabel.hpp
#pragma once
#include <iostream>
using namespace std;
template <class T1, class T2>
class Node
{
public:
Node<T1, T2>* next;
T1 key;
T2 value;
};
template <class T1, class T2>
class SymbolTabel
{
public:
SymbolTabel();
~SymbolTabel();
bool isEmpty();
int size();
void insert(T1 key, T2 value, bool sort = true);
void delet(T1 key);
void value(T1 key);
Node<T1, T2>* searchkey(T1 key);
void print();
private:
Node<T1, T2>* head;
int length;
};
template<class T1, class T2>
SymbolTabel<T1, T2>::SymbolTabel()
{
this->head