分类: C/C++
2009-10-06 20:33:52
void Tree::InOrderTree()
{
stack
node *p = root;
while(p != NULL || !s.empty())
{
while(p != NULL)
{
s.push(p);
p = p->left;
}
if(!s.empty())
{
p = s.top();
s.pop();
cout<
p = p->right;
}
}
}