Advertisement
Guest User

Untitled

a guest
Nov 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. void CNodeStatic::vPrintUpAddresses() {
  2.     std::cout << this << " ";
  3.     if (pc_parent != NULL){
  4.         pc_parent->vPrintUpAddresses();
  5.     }
  6. }
  7. void CNodeStatic::vPrintAddressesAllBelow() {
  8.     std::cout << this << " ";
  9.     for (int i = 0; i < v_children.size(); i++){
  10.         v_children[i].vPrintAddressesAllBelow();
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement