int size
- The number of elements in the list.
LinkedListNode* head
- Pointer to the first node in the list.
size
are stored in separate nodes.
size >= 0
.
size == 0
, then head == NULL
.
size >= 1
, then head != NULL
.
size >= 2
, then
i
from 1
to size - 1
,
the next
pointer in node i
is not
NULL
.
size >= 1
, then the next
pointer in node size
is NULL
.
linkedlist.h
(original),
linkedlist.h
(copy),
ListTest.cpp
This page was last modified on Feb 22, 2001
URL: http://people.hsc.edu/faculty-staff/robbk/Coms262/Lectures/LinkedLists.html