Question: please explain the code, so ill be easy to understand and learn from it! in c++ For this quest, a short struct called Monster. You
For this quest, a short struct called "Monster". You will first need to define a couple types to use in the struct: - enum class Type \{slime, sprite, orc, dragon\} - struct Attributes with the following members int Might int Accuracy int Endurance int HP int AC int Level Create an Monster struct with the following public members: - Type name; Bonus 50xP if you can successfully make this const! - Attributes stats; In your source.cpp file your main function needs to: - create a vector of Monsters and push_back 4 instances of the Monster struct. - Set values for all members of the struct (just give them values that sound good to you)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
