Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "library.h"
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- ifstream input("input.txt");
- Tree A;
- double x;
- while (!input.eof()) {
- input >> x;
- A.Add(x);
- }
- //cout << A.GetMaxElementCount();
- if (A.isBalanced()) cout << "Balanced" << endl;
- else cout << "Not Balanced" << endl;
- int res = 0;
- if (A.FindDivEL(res)) cout << "ELEMENT: " << res << endl;
- else cout << "ELEMENT NOT FOUND";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement