Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void print(Node *root) {
- static bool b = false;
- if(root == nullptr)
- return;
- print(root->rightNode);
- print(root->leftNode);
- if(b)
- {
- cout<<";";
- }
- cout<<root->data;
- b=true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement