< previous page page_1054 next page >

Page 1054
currPtr = newNodePtr;
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
The pointer to the new node is copied into currPtr. Now currPtr, newNodePtr, and head->link all point to the node containing 45.2 as its component.
1054-01.gif
newNodePtr = new NodeType;
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
A dynamic variable of type NodeType is created. The pointer to this new node is stored into newNodePtr.
1054-02.gif
newNodePtr->component = 70.1;
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
The value 70.1 is stored into the component member of the new node.
1054-03.gif

 
< previous page page_1054 next page >