![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
c04p187.cppGo to the documentation of this file.00001 00015 // Display the data in a linked list to which head points. 00016 // Loop invariant: cur points to the next node to be 00017 // displayed 00018 for (Node *cur = head; cur != NULL; cur = cur->next) 00019 cout << cur->item << endl; |