ancestors.h 363 Bytes
Newer Older
laddbr's avatar
laddbr committed
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * Assignment 9: Ancestors header file
 */
#pragma once
#include "tree_type.h"

void printAncestorsRecursive(TreeNode *tree, ItemType item,
                             std::ostream &outStream);
// in implementation file

void printAncestorsReverse(TreeNode *tree, ItemType item,
                           std::ostream &outStream);
// in implementation file