Question: 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 1
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 2-dimensional (2D) array to store the creature names, i.e 2D creature array -10 rows x21 columns
(21 accounts for null value).
Use of a 2-dimensional (2D) integer array to store creature stats (health and attack) i.e.2D integer array -10
rows x2 columns.
For example (note the use of symbolic constants, i.e., #define MAX_CREATURES 10, etc):
Define a 2D array of creatures to store the creatures' names. For example:
char db_creatures [MAX_CREATURES][STRING_LENGTH]=,
Define a 2D array of integers to store the creatures' stat information. For example:
int db_stats[MAX_CREATURES][STATS_COUNT]={0};
 Stage 1 Define four arrays, two for the database and two

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!