
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 robot nailed it. It seems that there wasn't enough meaningful text (for him) in the answers offered.
Re-create it, but write more text, instead of just names of languages. The wives only do not mention in vain in the texts of answers for their completeness.
Yes, there were just names like MQL4, MQL5, C ... etc. What a pussy ))
Yes, there were just names like MQL4, MQL5, C ... etc. What a bunch of broads))
Well... Not us, you :)
The topic is educational, not debatable. There's a mass-minded zeitgeist, he doesn't need opponents. Not yet.
You could have answered the man's question, but all you do is talk with your hands...
Why do you keep burying everything? Why is no one trying to understand the situation objectively? Not to your advantage? Are you all like that?
Well... Not us, you :)
Nope, it didn't work with long titles either, apparently a robot banned me for low forum activity )) Oh, well.
You could have answered the man's question, but all you do is talk with your hands...
Why do you keep burying everything? Why is no one trying to understand the situation objectively? Not to your advantage? Are you all like that?
Dim, yes there was no question. It's just, the topic of OOP, educational. To teach me about OOP. Why are you interfering?
Dim, there was no question. It's just that the topic of OOP is an educational one. To teach me about OOP. Why are you interfering?
In what place was I in the way?
========================================================================================================================
This topic will contain some oh-so-simple examples of how to use OOP.
Questions from novice programmers are welcome. Those who really want to understand OOP.
"Smart guys" who think I'm doing something wrong, start your own threads and do it right there. No one needs you here.
Disputes about necessity and uselessness of OOP are also irrelevant here.
========================================================================================================================
One more question: What is the difference between declaring a variable and obtaining/creating a pointer and creating an instance of an object? Not the difference, but when it's better to use it. For example, it's enough to declare a variable for opening a position.
#include <Trade\Trade.mqh> CTrade trade;
And in what cases it's better to use the pointer, and in what cases we can't do without the object instance.
What are the pros and cons of one method or another?
One more question: What is the difference between declaring a variable, getting/creating a pointer, creating an object instance. It's not the difference, but in which cases it's better to use. For example, it's enough to declare a variable for opening a position.
And in what cases it's better to use the pointer, and in what cases we can't do without the object instance.
What are the pros and cons of one method or another?
And that, brother, is something you decide for yourself, in a specific situation. There are general principles, but you are a developer, not a coder, so you know them and decide for yourself. So, the general idea is to stick to RAII as much as possible.
So the question was posed precisely to understand what to choose. Not for a contest of wizards.