Singly-linked list/Element removal: Difference between revisions
m
→{{header|Fortran}}: Clarify knowledge about the linked-list.
(Added a basic task description) |
m (→{{header|Fortran}}: Clarify knowledge about the linked-list.) |
||
Line 55:
WRITE (6,*) "Off with the head!"
CALL LLREMOVE(LINK,
CALL LLFOLLOW(LINK)
WRITE (6,*) "And off with the tail."
CALL LLREMOVE(LINK,5) !The tail element is not tracked.
CALL LLFOLLOW(LINK) !But, I know where it was, in this example.
END</lang>
Output:
<pre>
|