Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Stage 1 Define four arrays, two for the database and two for the player's creatures. ( the sample file on the course website will help
Stage
Define four arrays, two for the database and two for the player's creatures. the sample file on the course website will
help with this
Use of a dimensional D array to store the creature names, ie D creature array rows columns
accounts for null value
Use of a dimensional D integer array to store creature stats health and attack ieD integer array
rows columns.
For example note the use of symbolic constants, ie #define MAXCREATURES etc:
Define a D array of creatures to store the creatures' names. For example:
char dbcreatures MAXCREATURESSTRINGLENGTH
Define a D array of integers to store the creatures' stat information. For example:
int dbstatsMAXCREATURESSTATSCOUNT;
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