Advertisement
Sanlover

Untitled

Dec 22nd, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. else {
  2. if (first_ == last_) {
  3. Node* next = first_;
  4. first_ = new Node(_Value, next, nullptr);
  5. last_ = first_->next;
  6. }
  7. else {
  8. Node* next = first_;
  9. first_ = new Node(_Value, next, nullptr);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement