Wednesday, February 6, 2013

demystifying the myth of const


class const_test
{
static const int num=4;  //ok. but not ok without static or const
        enum{num2=4};  //ok
int test[num];
public:
const_test(){}
~const_test(){}
};

No comments:

Post a Comment