diff --git a/display_binary_tree.cpp b/display_binary_tree.cpp index ae60978..eb278cb 100644 --- a/display_binary_tree.cpp +++ b/display_binary_tree.cpp @@ -1,6 +1,7 @@ #include #include using namespace std; + class node { int info; @@ -54,6 +55,7 @@ void binary::insert(int ele,node *r) insert(ele,r->left); } + void binary::display() { if(root) @@ -74,6 +76,7 @@ void binary::display() } } + int main() { binary b;