Name initItems Given Modifies A partial array of item structures Returns This function initializes a list of items for future use. It should set the short and long descriptions of all elements of the array to empty string, and sets the number of items to 0. Name initRooms Given Modifies A partial array of room structures Returns This function initializes a list of rooms for future use. It should sets the short and long descriptions of all elements of the array to empty string, the north/south/east/west exits values to NO_EXIT, and invoke initltems() on the room's item list. Name initWinData Given Modifies a winDataStruct structure Returns This function initializes the win data of the game. It should set the win message to an empty string, set the win room index to NO_EXIT, and invoke initItems() on the list of win items

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 17PE
icon
Related questions
Question
100%

Name initItems Given Modifies A partial array of item structures Returns This function initializes a list of items for future use. It should set the short and long descriptions of all elements of the array to empty string, and sets the number of items to 0. Name initRooms Given Modifies A partial array of room structures Returns This function initializes a list of rooms for future use. It should sets the short and long descriptions of all elements of the array to empty string, the north/south/east/west exits values to NO_EXIT, and invoke initltems() on the room's item list. Name initWinData Given Modifies a winDataStruct structure Returns This function initializes the win data of the game. It should set the win message to an empty string, set the win room index to NO_EXIT, and invoke initItems() on the list of win items.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT