Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. bool QList::deque(Item &item)
  2. {
  3. if (isEmpty())
  4. return false;
  5.  
  6. Node *n = first;
  7. item = n->data;
  8. first = first->next;
  9. if (isEmpty())
  10. last = 0; Jag får " this declaration have no storage or class specifier"
  11.  
  12. delete n; // expected a declaration
  13.  
  14. return true; // expected a declaration
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement