Advertisement
Mikhail-Podbolotov

Untitled

May 22nd, 2024
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #pragma once
  2. struct Element {
  3.     Element* RightSon = nullptr;
  4.     Element* LeftSon = nullptr;
  5.     double value;
  6.     Element(double x);
  7. };
  8.  
  9. class Tree {
  10. private:
  11.     Element* Head = nullptr;
  12. public:
  13.     Tree();
  14.     void Add(double value);
  15.     int GetMaxElementCount();
  16. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement