Question: Consider the following enumerated data type and variable. Write a for loop using only the enum datatypes, variable and values to properly iterate through the
- Consider the following enumerated data type and variable. Write a for loop using only the enum datatypes, variable and values to properly iterate through the ordered list to display the associated values, i.e., BLACK_PANTHER would result in: cout << BLACK PANTHER << endl;
enum eheros {BLACK_PANTHER, CAPTAIN_MARVEL, IRON_MAN};
eheros heros;
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
