Advertisement
Brandan

Untitled

Oct 9th, 2014
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement