Brandan

Untitled

Oct 9th, 2014
323
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list::~list() {
  2.     node * curr;
  3.     if (size == 0) {
  4.  
  5.     } else {
  6.         node * curr = headByName;
  7.         while (curr != NULL) {
  8.             delete curr;
  9.             curr = headByName->nextByName;
  10.         }
  11.     }
  12. }
RAW Paste Data