yes

Dependencies:   microbit-dal

inc/binTree.h

Committer:
schizzlewizzle
Date:
2019-03-04
Revision:
15:470dd4b66b6f

File content as of revision 15:470dd4b66b6f:


#include <string>

using std::string;


class binTree
{

public:
//defining tree and values stored inside.
    struct node{
    node* dot;
    node* dash;
    node *root;
    char inputC;
    string morse;
    };
    node *root;
    
    binTree();
//functions for binary tree
    void insert(char inputC, string morse, node * root);
/*binTree::node* search(string morse, node * leaf);*/
//binTree::node* search(string morse);
    void insert(char inputC, string morse);
    char tFind(node*, string morse);
};