Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Node* p;
- p = new Node;
- p->firstname = firstName;
- p->lastname = lastName;
- p->value = value;
- if (rosterEmpty() == true)
- {
- head = p;
- tail = p;
- head->next = nullptr;
- p->prev = nullptr;
- }
- else {
- tail->next = p;
- p->prev = tail;
- tail = p;
- tail->next = nullptr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement