Advertisement
ceco_v

Untitled

May 20th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. void List<T>::printList()
  2. {
  3. if (this->size != 0)
  4. {
  5. Node<T>* temp = first;
  6. while (temp != nullptr)
  7. {
  8. std::cout << temp->data << ",";
  9. temp = temp->next;
  10. }
  11. }
  12. else return;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement