Enums in C++
Here is the short note
1 |
enum class EnumName: char {ValueA = "a", ValueB, ValueC} |
Enum class a new type, It is, of course, an enum bat using namespace. Type is the variable is char in here and the value of a type declared as “a” in here.