Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Tree
- {
- Node* root = NULL;
- };
- struct Node
- {
- Point* point;
- Node* left_child = NULL;
- Node* right_child = NULL;
- };
- int main()
- {
- Node* q = new Node;
- q->point = &points[0];
- Tree* L = new Tree;
- L->root = q;
- for (int i = 1; i < n; i++)
- {
- Node* q = new Node;
- Tree->left_child = q;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment