STATUS
BMTree::_insert(node *node_target, const dtype data_x, dtype &data_y, node *&node_q);
이런 녀석이 있군요 -_-;
node는 typedef된 struct고요.
대체 *&node_q...라는 변수는 어떤걸 의미하나요?
사용은 다음과 같이 되는데..
node *node_new, *node_final;
dtype data_x_new, data_k_final;
STATUS result;
blablabla...
/*
* recursive call
*/
result = _insert(node_target->nodes[i], data_x, data_x_new, node_new);
node_new가 node*형이니, 결국은 포인터를 넘겨주는게 아닌가 싶은데..