Skip to content

Commit eb892c1

Browse files
authored
Update BST.cpp
1 parent 76f03d5 commit eb892c1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

BST.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
//code to make a BST with order(s) traversal (in-development)
12
#include<iostream>
23
using namespace std;
34
#include<conio.h>
45
struct tree
56
{
67
tree *l,*r;
78
int data;
8-
}*root = NULL, *p = NULL, *np = NULL, *q;
9+
}*root = NULL, *p = NULL, *np = NULL, *q, *temp = NULL;
910

1011
void create()
1112
{
@@ -87,8 +88,8 @@ void postorder(tree *p)
8788
int main()
8889
{
8990
create();
90-
cout<<"printing traversal in inorder\n";
91-
inorder(root);
91+
//cout<<"printing traversal in inorder\n";
92+
//inorder(root);
9293
cout<<"printing traversal in preorder\n";
9394
preorder(root);
9495
cout<<"printing traversal in postorder\n";

0 commit comments

Comments
 (0)