How to use enum? Example,
enum stat {WIN,LOSE,CONT}; switch (stat) { case WIN: break; case LOSE: break; case CONT: break; } And this code does not work, because as it turns out stat , this is the type of variables WIN,LOSE,CONT So how then do I implement a switch with an enumeration?