Hi everyone, i have looked and looked, what does the function int a(int b, int c) do. I know it returns x but to what i have never seen this before.
and also x=a(d,c) i just dont understand the stuff in brackets, im only used to 1 variable being in there...whats the comma do?? This is not for a test or assignment, however i will fail if i dont learn this.
Hi Neil_Cave,
What you see there is called a structure, a very well known concept in Object Oriented Programming (OOP). MQL4 is not an OOP language therefore it does not recognize structure.
However MQL5 is an OOP, therefore it recognize structure https://www.mql5.com/en/docs/basis/oop.
Now, I'm not gonna explain any further what is structure and then what is class - an expanded concept of structure, coz there's already explanation about it on the web. Perhaps, for a start you can google structure and class and also read from here http://www.cplusplus.com/doc/tutorial/structures/ and http://www.cplusplus.com/doc/tutorial/classes/.
:D
Hi everyone, i have looked and looked, what does the function int a(int b, int c) do. I know it returns x but to what i have never seen this before.
and also x=a(d,c) i just dont understand the stuff in brackets, im only used to 1 variable being in there...whats the comma do?? This is not for a test or assignment, however i will fail if i dont learn this.
Have you tried asking on a Forum related to Java ?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everyone, i have looked and looked, what does the function int a(int b, int c) do. I know it returns x but to what i have never seen this before.
and also x=a(d,c) i just dont understand the stuff in brackets, im only used to 1 variable being in there...whats the comma do?? This is not for a test or assignment, however i will fail if i dont learn this.