Now I got a reply from Service Desk, and it's working!
Here it goes:
----------------------------------------
Yes, now when you globally declare variables of a
class or structure that have static members, you need to explicitly
declare those members to tell compiler in which order variables should
be initialized.
So, in your example, before the class declaration,
add the following line where you can initialize the static variable
with desired value (for example, 17.0):
Now I got a reply from Service Desk, and it's working!
Here it goes:
----------------------------------------
Yes, now when you globally declare variables of a
class or structure that have static members, you need to explicitly
declare those members to tell compiler in which order variables should
be initialized.
So, in your example, before the class declaration,
add the following line where you can initialize the static variable
with desired value (for example, 17.0):
Ok, so it's a change in the compiler. A little weird in my opinion, anyway thanks for the information.
Now I got a reply from Service Desk, and it's working!
Here it goes:
----------------------------------------
Yes, now when you globally declare variables of a class or structure that have static members, you need to explicitly declare those members to tell compiler in which order variables should be initialized.
So, in your example, before the class declaration, add the following line where you can initialize the static variable with desired value (for example, 17.0):
double CMM::m_percent=17.0; CMM mms;Now I got a reply from Service Desk, and it's working!
Here it goes:
----------------------------------------
Yes, now when you globally declare variables of a class or structure that have static members, you need to explicitly declare those members to tell compiler in which order variables should be initialized.
So, in your example, before the class declaration, add the following line where you can initialize the static variable with desired value (for example, 17.0):
Hello how about static array in a class ? no matter what I do there is still error...