I had to use an enumerated data type in my last program, and I couldn't get my program to stop giving me fatal run-time errors.
here is the enumerated data type:
enum piece {EMPTY, BLACK, WHITE};
Now, the trouble I am having is related to evaluation or assignment of this type.
by evaluation, I mean: if ( thePiece == WHITE )
type things, and return WHITE;
type things.
by assignment, I obviously mean piece thePiece = WHITE
I am pretty sure that I am doing assignment right, but the evaluation seems to be raping me.
If you would prefer that I post the code in its entirety, just say so, but I must warn you all that it is in 3 files: the header, the implementation, and the driver.
So please help me. This will be bothering me until I can figure it out, which it is proving too difficult for me to do alone.