You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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...