12345678910111213141516171819202122232425262728 |
- #include "source1.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- Triehard * test = new Triehard();
- cout << "success! Created test" << endl;
- int x[3] = {0,0,0};
- int y[5] = {1,0,0,1,0};
- int z[6] = {0,0,0,0,0,1};
- test->insert(x, 3);
- cout << "success! inserted x" << endl;
- test->insert(y, 5);
- cout << "success! inserted y" << endl;
- test->insert(z,6);
- cout << "success! inserted z" << endl;
- //test->print();
- test->myPrintIsBetterThanYoursLogan();
- cout << "Print Done!" << endl;
- test->cut(x, 3);
- cout << "success! cut tree" << endl;
- test->print();
- //test->myPrintIsBetterThanYoursLogan();
- delete test;
- cout << "success! Completed test" << endl;
- //while(1);
- }
|