As in topic what is the difference between them? Documentation in mql5 seems to be avoiding proper definition and examples for extern type.
Thank You! If I wanted to use the same functionality as from mql4 "extern" offers but in mql5 what type should i call?
as per the documentation you should use input
but note the input value is static
https://www.mql5.com/en/docs/basis/variables/inputvariables- www.mql5.com
Personally, I don't program in C++ and I don't understand how you can say that a global variable is static. I understand static local variables, static members and methods for a class/struct. I also understand what sinput means. But I don't understand how you can characterize a global variable (not a member of a class/struct) as static. What does this mean?
[EDIT]
What is the difference between x and y?
static int x = 1; int y = 1; void OnStart() { Print(++x*++y); }
Personally, I don't program in C++ and I don't understand how you can say that a global variable is static. I understand static local variables, static members and methods for a class/struct. I also understand what sinput means. But I don't understand how you can characterize a global variable (not a member of a class/struct) as static. What does this mean?
Personally, I don't program in C++ and I don't understand how you can say that a global variable is static. I understand static local variables, static members and methods for a class/struct. I also understand what sinput means. But I don't understand how you can characterize a global variable (not a member of a class/struct) as static. What does this mean?
[EDIT]
What is the difference between x and y?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use