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:
- Size() is done for you in the .hpp. You’re welcome!
- 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.
- Fill in the output operator definition in the .cpp.
OROR