Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CReactNode * copyTree ( CReactNode * node )
- {
- if ( node -> m_L == NULL && node -> m_R == NULL )
- return new CReactNode (node -> m_Product, node -> m_Energy, NULL, NULL);
- return new CReactNode (node -> m_Product, node -> m_Energy, copyTree (node -> m_L), copyTree (node -> m_R));
- }
Advertisement
Add Comment
Please, Sign In to add comment