R
Roger
enum status { CONTINUE, WON, LOST }
What do we really need to use enum for? I'm not sure what the use of
it is really for... Maybe I just don't quite understand. My textbook
says that these enumeration constants are integers and start at 0 if
you don't assign the first constant in the enum. So, in this case,
CONTINUE is 0, WON is 1, and LOST is 2.
Why cant we just use integers instead? Why enum???
Many thanks for the help
What do we really need to use enum for? I'm not sure what the use of
it is really for... Maybe I just don't quite understand. My textbook
says that these enumeration constants are integers and start at 0 if
you don't assign the first constant in the enum. So, in this case,
CONTINUE is 0, WON is 1, and LOST is 2.
Why cant we just use integers instead? Why enum???
Many thanks for the help