- Jul 23, 2006
- 3,934
- 0
- 76
We've been going over Binary Search Trees in class, and we have an assignment to implement an address book with a BST. Our prof gave us the code for a BST, however there is one thing I'm unfamiliar with.
template <class KeyType, class DataType>
void BST<KeyType, DataType>::traverse(TraverseType traverseType, void (*visit)(KeyType, DataType))
or particularly:
void (*visit)(KeyType, DataType)
I'm just unsure as to how to interpret this line.
template <class KeyType, class DataType>
void BST<KeyType, DataType>::traverse(TraverseType traverseType, void (*visit)(KeyType, DataType))
or particularly:
void (*visit)(KeyType, DataType)
I'm just unsure as to how to interpret this line.
