25 lines
387 B
C++
25 lines
387 B
C++
|
#include <iostream>
|
||
|
|
||
|
#include "node.h"
|
||
|
|
||
|
int main() {
|
||
|
/*
|
||
|
Node* root = new Node("root");
|
||
|
Node* left_child = new Node("left child");
|
||
|
Node* right_child = new Node("right child");
|
||
|
|
||
|
root->add_child(left_child);
|
||
|
root->add_child(right_child);
|
||
|
|
||
|
delete root;
|
||
|
*/
|
||
|
|
||
|
Node* auto_root = Node::create_complete_tree(2, 4);
|
||
|
|
||
|
std::cout << auto_root << std::endl;
|
||
|
|
||
|
delete auto_root;
|
||
|
|
||
|
return 0;
|
||
|
}
|