- #1
dE_logics
- 742
- 0
An example of enum -
enum class {a = 64, b, c, d}
even if I -
enum {a = 64, b, c, d}
I will get the same results.
Printing class returns an error...so I was wondering what's the use of this name given before the actual declaration of the elements (in braces)...or in this example, what's the use of 'class'?
I think it makes the declarations more manageable...nothing more.
Edit: And yes, everything in c.
enum class {a = 64, b, c, d}
even if I -
enum {a = 64, b, c, d}
I will get the same results.
Printing class returns an error...so I was wondering what's the use of this name given before the actual declaration of the elements (in braces)...or in this example, what's the use of 'class'?
I think it makes the declarations more manageable...nothing more.
Edit: And yes, everything in c.
Last edited: