
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
The need to use OOP arises when the program becomes larger than "Hello word".
In general, I've known MQL4 for several years, and I'm still amazed by its wretchedness. The fourth MQL is as far away as a star from the capabilities of classical C. In MQL5 the developers decided to go forward. The number of features has increased and programming has become easier. The language has become more complex, yes, but the product was not made for school students.
Basic and Pascal have always been used to study at school/university (all self-respecting educational institutions have the latter)...
Lists, trees, graphs, it is not possible to have pointers in MQL4.
C and Java and Asm were shoved at us, but it's no use...).
This is already professional, I'm talking about programming basics (in today's terms it would be computer science lessons).
Although C in principle can also be studied at basic level, for example instead of Basics...
What are lists, trees and graphs ... explain it to me. (I know what a tree is, but I'm afraid it's not a tree with leaves and cones)
It's better not to think about it - do you personally need...? :)
Question. The Reference Manual states that.
Переменная типа класса (объект) может передаваться как по ссылке, так и по указателю. Указатель как и ссылка служит для того, чтобы получать доступ к объекту.
...if we want a function to return an object, we can return a pointer to that object in the form of GetPointer(this).
Trying to use the object as a parameter of a third-party function, i.e. trying to pass the object into the function. In both cases (both when passing an object by reference and when passing by pointer) the compiler doesn't swear. Is there any difference between these two methods of passing an object to a function, or can they be used with equal success? It's not necessary to return an object (a pointer to an object).
Question. The Reference Manual states that
Trying to use an object as a parameter of a third-party function, i.e. trying to pass an object into a function. In both cases (both when passing an object by reference and when passing by pointer), the compiler doesn't swear. Is there any difference between these two methods of passing an object to a function, or can they be used with equal success? It's not necessary to return an object (a pointer to an object).