J
john smith
Hi,
I am trying to initialize a float in a class.
For example:
class ABC{
public:
private:
static const float = 3.3;
};
The compiler does not like that, and I don't know how to declare and define
a float that has class scope only.
Thanks in advance for your help.
I am trying to initialize a float in a class.
For example:
class ABC{
public:
private:
static const float = 3.3;
};
The compiler does not like that, and I don't know how to declare and define
a float that has class scope only.
Thanks in advance for your help.