-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_Trie.cpp
More file actions
27 lines (27 loc) · 739 Bytes
/
main_Trie.cpp
File metadata and controls
27 lines (27 loc) · 739 Bytes
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
//#include "Trie_Node.h"
//
//#include <iostream>
//#include <string>
//#include <crtdbg.h>
//using namespace std;
//
//
//int main()
//{
// Trie_Node* root = new Trie_Node('\0');
//
// root->Insert(std::string("apple"));
// root->Insert(std::string("apt"));
// root->Insert(std::string("ape"));
//
// cout << "Found Apple: " << root->Search(std::string("apple")) << endl;
// cout << "Found Ape: " << root->Search(std::string("ape")) << endl;
// cout << "Found Apt: " << root->Search(std::string("apt")) << endl;
// cout << "Found App: " << root->Search(std::string("app"), true) << endl;
// cout << "Found Apc: " << root->Search(std::string("apc"), false) << endl;
//
// delete root;
//
// _CrtMemDumpAllObjectsSince(0);
// return 1;
//}