Complete List Numbers Singly Linked Lists Instead Using Array Vector 3 Piece Code Towards Q37062869

How do I complete this list of numbers to be singly linked listsinstead of using an array or vector? (3 piece code towards thebottom)

Directions:

Test 1: An empty list

Test 1 in main.cpp prints an empty list (using the outputoperator) and calls its size accessor function to verify that thesize is 0. Here’s what you’ll need to implement to get thisworking:

  1. Size() is done for you in the .hpp. You’re welcome!
  2. Fill in the default constructor definition in the .cpp. This isresponsible for setting the first, last, andsize member variables to reasonable values for an emptylist.
  3. Fill in the output operator definition in the .cpp.
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.