For some reason this code doesn't work
class Media
{
private:
static int number;
public:
void addMediaType();
};
void Media :: addMediaType()
{
number=1;
}
How can I refer to my static number from my public method ?
For some reason this code doesn't work
class Media
{
private:
static int number;
public:
void addMediaType();
};
void Media :: addMediaType()
{
number=1;
}
How can I refer to my static number from my public method ?
Bookmarks