Question: C++ Question Help: I want to know how to code a giftlist.cpp. those are the requirements: Program must compile and run. All inputs are strings.
C++ Question Help: I want to know how to code a giftlist.cpp.
those are the requirements:
Program must compile and run.
All inputs are strings.
Only do the nice list, not the naughty list.
User will enter names until empty string denoting no more names.
Each name will be followed by one or more gifts.
After names entered display contents of the name list and each gift list.
Those are output example:
tim superman comic car pony
alice dress
bob monopoly candy cane
greg legos cookie
The list contains
name for nice list:
gift:
gift: pony
gift: car
gift: superman comic
add gifts for tim
name for nice list: tim
gift:
gift: dress
add gifts for alice
name for nice list: alice
gift:
gift: candy cane
gift: monopoly
add gifts for bob
name for nice list: bob
gift:
gift: cookie
gift: legos
add gifts for greg
name for nice list: greg
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
