Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. template<class itemType>
  2. void unsortedType<itemType>::printList()
  3. {
  4. nodeType<itemType>* tempPtr;
  5. tempPtr=listData;
  6.  
  7. while(tempPtr!=NULL)
  8. {
  9. cout << tempPtr->info << " ";
  10. tempPtr=tempPtr->next;
  11. }
  12. delete tempPtr;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement