is there a way to change the value of an enum item with a method as in
I get a type mismatch error (no conversion from type 'enum' to 'int'). Any suggestions?
I realize I can have the SOMETHING as a private data member...
thanks Avendeval
Code:
class Hoho{
public:
//...
enum{SOMETHING=5};
void changeSomething(int n){SOMETHING = n;}
private:
//...
};
I get a type mismatch error (no conversion from type 'enum' to 'int'). Any suggestions?
I realize I can have the SOMETHING as a private data member...
thanks Avendeval