Intialize an data member of class
hi all,
I am trying to initialise an data member of a class, but failed. Any advices?
1 2 3 4 5
|
class MathFunctions
{
public:
const static double EWMALamda=0.95;
}
|
Thanks
Last edited on
1 2 3 4 5 6 7
|
class MathFunctions
{
public:
const static double EWMALamda;
};
double const MathFunctions::EWMALamda=0.95;
|
See
Static members here : http://www.cplusplus.com/doc/tutorial/classes2/
Last edited on
Topic archived. No new replies allowed.