Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How do you do this in C++ : 1.create an array of strings with a size of 10. 2. the player starts with 3 items.
How do you do this in C++ :
1.create an array of strings with a size of 10. 2. the player starts with 3 items. over the course of several adventures, 3. the player gains 3 items and has to name each of them. - because of cin limitations, the name can only be one word. 4. the player uses 1 item, making it go away. 5. at each change in inventory - show the changes with a for loop that ignores strings that have "" no characters.
6.the player must give up their most treasured item to the bridge troll (or similar) to get past the bridge. The player will have to search for that item inside of a for loop.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started