Question: Stage 2 Write the code for functions read _ creature _ file ( ) and display _ creatures ( ) as specified above. Add code
Stage
Write the code for functions readcreaturefile and displaycreatures as specified above. Add code
to call these two functions to ensure they are working correctly. You may write your own readcreaturefile
function or you may use the one provided for you. A sample readcreaturefile function will be posted online
by week
For example, given the provided databaseCreatures.txt file, your array should now look like this:
creatures
D array of creatures to store creature names
dbstats
D array of integers to store
stats
Stage
Now that you know that the information is being correctly stored in your creature and health arrays, write the code for
function writetofile Add code to call this function to ensure it is working correctly. Your txt files outputted
should match the same format as the input files.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
