#include <iostream>
#include <cstdlib>
#include "classes.h"

using namespace std;

int main()
{
	bin_tree tree;
	int n, i, element;

	cout << "How many elements will you enter? ";
	cin >> n;
	
	cout << "Enter the elements: ";
	
	for (i = 0; i < n; i++)
	{
		cin >> element;
		tree.add_node (element);
	}
	
	cout << "The tree is as: " << endl;
	
	tree.display(bfs_order);
	
	return EXIT_SUCCESS;
}
