Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 15:470dd4b66b6f, committed 2019-03-04
- 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 |
diff -r 4b89e7e3494f -r 470dd4b66b6f inc/binTree.h --- /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); +}; +