Re: Question about "enums"




Ian Collins wrote:


oklopp us a variable of the enum type loop, so you can assign either NO
or YES to it.

It must be late or too much C :-)

I guess what I am missing is what the:

enum loop { YES,NO}

then does?

I thought that the idea behind this was to assign an integer to the
YES, NO? ( In this case 0 and 1?)

Then why not simply use the terms "YES" and "NO"?

Thanks in advance?

.