I have a class which has a enum in protected, and a function in public, and this function uses the enum, still I get...
here's my code...Code:error C2511: 'void Cball::move(Cball::posNeg)' : overloaded member function not found in 'Cball'
Code:class Cball
{
public:
Cball();
~Cball();
float x, y;
float speed;
bool inAir;
void sendDir();
void move(enum posNeg xDir);
protected:
int chooseDir();
enum posNeg { POSITIVE = 1, NEGATIVE = -1};
};