当有人编码时是什么意思:
template <class T>
void binaryTree<T>::in_order(Node <T>* node, void (*fun)(T&))
{
if (node == NULL)
return; //<-- what does this mean here
inorder(node->left, fun); //<-- how does this continue here
f(node->data);
inorder(node->right,fun);
}
问题是你如何获得回报;不返回任何东西。这是做什么的?**注意,为了清楚起见,我已经编辑了上面的代码。