yes

Dependencies:   microbit-dal

Files at this revision

API Documentation at this revision

Comitter:
schizzlewizzle
Date:
Mon Mar 04 17:07:58 2019 +0000
Parent:
14:4b89e7e3494f
Commit message:
yeet

Changed in this revision

inc/binTree.h Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/inc/binTree.h	Mon Mar 04 17:07:58 2019 +0000
@@ -0,0 +1,29 @@
+
+#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);
+};
+