Declaring constant member variables
class bingbangbong {
public:
bingbangbong();
~bingbangbong();
/* some random functions */
const int SETTING_ONE = 0;
const int SETTING_TWO = 1;
const int SETTING_THREE = 2;
/* more settings etc */
}
I'm trying to set member variables as constant, so I can go bingbangbong::SETTING_ONE etc. How do I do this, as it certainly doesn't work as above :O(
__________________
<GSVsleep> cows would live a lot longer if they werent made out of steaks and leather
|