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

please explain the code, so ill be easy to understand and learn from it! please explain the code, so ill be easy to understand and learn
in c++

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

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!