Guest User

Untitled

a guest
Oct 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. q = uno;
  2. p = (*q).next;
  3. if ((*q).gpa > 3)
  4. {
  5. uno = nil;
  6. }
  7. else
  8. {
  9. while (((*p).gpa <= 3) && ((*p).next != nil))
  10. {
  11. q = p;
  12. p = (*p).next;
  13. //endwhile
  14. }
  15. if ((*p).gpa > 3)
  16. {
  17. (*q).next = nil;
  18. }
  19. else
  20. {
  21. cout << "Nothing to delete.";
  22. }
  23. }
Add Comment
Please, Sign In to add comment