Help with enumerated data types.
Hello.
just got a question, why should I use enum instead of an int?
enum just gives me +1 from the predecessor I picked.
why not use a fixed number?
I can understand if im going to write out the numbers on the months of the entire year, then it can be good to get +1 instead of writing:
january = 1; february = 2; etc etc etc
but other than that, I just dont get it :P
DONT link me to another homepage where it is explaining the enum, cuz I have read that.
Give me some concrete examples.
Thx.