Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- q = uno;
- p = (*q).next;
- if ((*q).gpa > 3)
- {
- uno = nil;
- }
- else
- {
- while (((*p).gpa <= 3) && ((*p).next != nil))
- {
- q = p;
- p = (*p).next;
- //endwhile
- }
- if ((*p).gpa > 3)
- {
- (*q).next = nil;
- }
- else
- {
- cout << "Nothing to delete.";
- }
- }
Add Comment
Please, Sign In to add comment