loulett

Untitled

Apr 5th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. struct Tree
  2. {
  3.     Node* root = NULL;
  4. };
  5.  
  6. struct Node
  7. {
  8.     Point* point;
  9.     Node* left_child = NULL;
  10.     Node* right_child = NULL;
  11. };
  12.  
  13. int main()
  14. {
  15.     Node* q = new Node;
  16.     q->point = &points[0];
  17.     Tree* L = new Tree;
  18.     L->root = q;
  19.     for (int i = 1; i < n; i++)
  20.     {
  21.         Node* q = new Node;
  22.     Tree->left_child = q;
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment