From b9dcc250954bdcaaffdb48bc615f05de60c4dfe0 Mon Sep 17 00:00:00 2001 From: lata-arora <73037793+lata-arora@users.noreply.github.com> Date: Thu, 22 Oct 2020 20:31:32 +0530 Subject: [PATCH] Update display_binary_tree.cpp --- display_binary_tree.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/display_binary_tree.cpp b/display_binary_tree.cpp index ae60978..5f453d6 100644 --- a/display_binary_tree.cpp +++ b/display_binary_tree.cpp @@ -1,6 +1,7 @@ #include #include using namespace std; + class node { int info; @@ -62,6 +63,7 @@ void binary::display() node *a=new node[count]; node *temp=root; a[i]=temp; + while(i