Question: C++ Integer dataSize is read from input. The remaining input consists of dataSize strings followed by dataSize integers. Declare string vector inventoryList and integer vector
C++



Integer dataSize is read from input. The remaining input consists of dataSize strings followed by dataSize integers. Declare string vector inventoryList and integer vector quantityList, each with dataSize elements. Then: - Read and store dataSize strings into inventoryList. - Read and store dataSize integers into quantityList. Ex: If the input is: 3 shelf cabinet bed 696525 Then the output is: Inventory: shelf, Quantity: 69 Inventory: cabinet, Quantity: 65 Inventory: bed, Quantity: 25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
