Question: use C + + to create cpp file for following hpp file and read the instructions very carefully. int releaseCreaturesBelowLevel ( int levlo = 0
use C to create cpp file for following hpp file and read the instructions very carefully.
int releaseCreaturesBelowLevel int levlo ;
int releaseCreaturesOfCategoryconst std::string& cater "ALL";
@param : An integer representing the level threshold of the creatures to be removed from the Cavern, with default value
@post : Removes all creatures from the Cavern whose level is less than the given level. If no level is given, removes all creatures from the Cavern. Ignore negative input.
@return : The number of creatures removed from the Cavern
releaseCreaturesBelowLevel
@param : A reference to a string representing a creature Category with a value in UNKNOWN "UNDEAD", "MYSTICAL", "ALIEN" or default value "ALL" if no category is given
@post : Removes all creatures from the Cavern whose category matches the given category. If no category is given, removes all creatures from the Cavern.
@return : The number of creatures removed from the Cavern
NOTE: no preprocessing of the input string necessary, only uppercase input will match. If the input string does not match one of the expected category values, do not remove any creatures.
releaseCreaturesOfCategory
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
