Question: 1 0 . 2 0 CIST 2 3 6 2 LAB: Inventory ( linked lists: insert at the front of a list ) Given main

10.20 CIST2362 LAB: Inventory (linked lists: insert at the front of a list)
Given main(), define an InsertAtFront() member function in the InventoryNode class that inserts items at the front of a linked list (after the dummy head node).
Ex. If the input is:
4
plates 100
spoons 200
cups 150
forks 200
the output is:
200 forks
150 cups
200 spoons
100 plates

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!