Advertisement
akosiraff

Singly Linked List

Oct 9th, 2013
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/singly-linked-list/
  3. Implement a singly linked list with a header node, along with a pointer to
  4. the header node, but no tail node as a class template named singleList.
  5. Include methods to
  6. a. return the size of the linked list,
  7. b. print the linked list,
  8. c. test if a value x is contained in the linked list,
  9. d. add a value x if it is not already contained in the list,
  10. e. remove a value x if it is contained in the linked list.
  11. You need not include iterators or functions begin and end. Include a main
  12. function that instantiates a list of integers, singleList, and allows an
  13. interactive user to execute any of the five member functions listed above.
  14.  
  15. Download: http://solutionzip.com/downloads/singly-linked-list/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement