Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void List<T>::printList()
- {
- if (this->size != 0)
- {
- Node<T>* temp = first;
- while (temp != nullptr)
- {
- std::cout << temp->data << ",";
- temp = temp->next;
- }
- }
- else return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement