From 75223ac1e749c7c439292c35c1e193bd70fc8c6c Mon Sep 17 00:00:00 2001 From: narender08 <56318863+narender08@users.noreply.github.com> Date: Sat, 3 Oct 2020 13:53:30 +0000 Subject: [PATCH] Update display_binary_tree.cpp --- display_binary_tree.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;