📜  预购 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:55.134000             🧑  作者: Mango

代码示例1
void preorder(Node* root){
    if(root != NULL){
        cout<data<<" ";
        preorder(root->left);
        preorder(root->right);
    }
}