Is the enumeration always be used ?

i dun understand what the enumeration is used for ?
For introducing meaningful names instead of magic values.
Last edited on
What is the functional differences between enumeration and "struct"
Structures can have members of any types plus methods. Enumerations have only enumerators that is named constants.
I think you should open at least one book on C++ instead of to bother the forum.
Last edited on
yup , i am reading "C++ Primer Plus 6/e"
To put it plainly, structs house variables. Whereas enums house constants.
Topic archived. No new replies allowed.