Enum

What is an enumeration? What is its purpose and how do I use it? Your help is most appreciated!
I went to the link but it didn't tell me what their used for. Can anyone explain to me the purpose of enumerations?
An enumeration is basically a word that represents a number.
It is a quick way to initialize a few variables with counting values. (You can set your own though)

In the example the tutorial gave, the month variable was set to a word. The word actually represented a number though.
What wouldn't it be more efficient to just make normal variables?
Not exactly. Sometimes it is quicker and less error prone to use an enumeration.

A little something to read:
http://msdn.microsoft.com/en-us/library/zfezz6cy(VS.80).aspx
Topic archived. No new replies allowed.