Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //почему мы делали так
- item* del_elem_head(item* head)
- {
- item* cur = head;
- head = head->next;
- delete cur;
- return head;
- }
- //а не так
- item* del_elem_head(item* head)
- {
- delete head;
- head = head->next;
- return head;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement