We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
What is this line and what does it do. The first part is a previous enumeration, the second part is the first occurrence in the module. static enum DEFROST_STATE PreviousState;
In my c book enum is described on page 322, why do you not find it in yours. Erik
The question is not of enumeration but on the 1 line of code that I posted Mark
but that line of code is an enum definition!!
static enum DEFROST_STATE PreviousState;
Here is more of the code. First this. enum DEFROST_STATE { NO_DEFROST_STATE, D_WAITING_FOR_CART, WAITING_FOR_DEFROST_INTERVAL, DEFROSTING, DEFROST_SUSPENDED }; Then inside a function this. static enum DEFROST_STATE PreviousState; Again, this is the fist occurrence of PreviousState in the code. How does the second relate to the first?
why, oh why do you help those that REFUSE to read the manual? Erik
why, oh why do you help those that REFUSE to read the manual Because the answer was simple and was a single sentence. In this case, it may not have been obvious to the poster that you can define an enum-typed variable. I agree with you that there are a lot of poeple who aparently cannot read. However, in this case, the question was so simple that the answer was shorter than all of the Please read the manual replies. Jon
"the question was so simple that the answer was shorter than all of the Please read the manual replies." but Please read the manual would have got him the answer quicker!
"why, oh why do you help those that REFUSE to read the manual?" Hmmm... These days you can hire a "personal shopper" to go and do your shopping for you; It looks like the market is wide open for a "personal manual reader"... ;-)