Question: /*Help with print function of c++ program can get Double threaded BST to properly allign*/ /*Cannot get program to correctly allign the Double Threaded BST,
/*Help with print function of c++ program can get Double threaded BST to properly allign*/
/*Cannot get program to correctly allign the Double Threaded BST, what is wrong? */
template
void BST
{
BSTNode
for (;;)
{
cout
p = tmp;
tmp = tmp->rc;
if (!p->rcThread)
{
while (!tmp->lcThread)
{
tmp = tmp->lc;
cout
}
cout
}
if (tmp == root)
break;
cout key()
}
}
/*Currently my output looks like so...*/

/*I need it to look like this...*/

67 68 69 78 75 79 83 85 87 90 Press any key to continue 67 68 69 78 75 79 83 85 87 90 Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
