트리와 재귀
2014-06-30
|
by kanyez
1567
void SBT_PreorderPrintTree( SBTNode* Node )
{
if ( Node == NULL )
return;
/* 루트 노드 출력 */
printf( " %c", Node->Data );
/* 왼쪽 하위 트리 출력 */
SBT_PreorderPrintTree( Node->Left );
/* 오른쪽 하위 트리 출력 */
SBT_PreorderPrintTree( Node->Right );
}
이부분 재귀함수에대해 알아야하는거죠?