The EOP for schoolchildren. - page 13

 
Artyom Trishkin:

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 ))

 
Alexey Volchanskiy:

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-entertainer, he doesn't need opponents. For now.
 
Алексей Тарабанов:
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?

 
Artyom Trishkin:

Well... Not us, you :)

Nope, it didn't work with long titles either, apparently a robot banned me for low forum activity )) Oh, well.

 
Dmitry Fedoseev:

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?

 
Koldun Zloy:

========================================================================================================================

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?

 
Alexey Viktorov:

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, bro, is something you decide for yourself, in your own 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.
I'm sorry, but all inclusive is on vacation.
 
Vladimir Simakov:
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.
Sorry, but all inclusive on holiday, the post is pushing it.

So the question was posed precisely to understand what to choose. Not for a contest of wizards.