class A
{
};
class B
{
A* Data[];
B()
{
ArrayResize(this.Data, 1);
}
A* operator []( constint Pos )
{
return(this.Data[Pos]);
}
void Init()
{
A* a = this[0];
a = new A; // так работаетthis[0] = new A; // а так - нет
}
};
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
That's how it should be, aren't you confused? You have a protected specifier, it defines methods as available in descendants.
With protected inheritance, public methods of the base class become protected in the derived class.
Exactly. Protected accesses in a derivative.
Yes, what a class instance has after the point and what the class itself has after this.
In short, like this:
It's good when you know the names of the methods. And if you don't? Should we open a file and see what's there?
Maybe some people find it convenient but hardly many...
Did Ctrl+Space ever display a list of available methods?
Ctrl+Space works as always, and so does Ctrl+Shift+Space, and they didn't break.
It's the intelligences after the dot that don't work.
In short, like this:
It's good when you know the names of the methods. And if you don't? Open the file and see what is there?
May be convenient to someone, but I don't think many...
Why in the area of global variables? It logically should not be opened there at all because it is not needed.
Try it in OnTick, for example.
And why in the area of global variables? logically, it should not open there at all, because there is no need to
try it in OnTick, for example
Here is an array
array = 0|-5|-14|49|35|-7|-15|48|36|99|67|70|90|107|170|233|296|269|243|237|223|220|200|196|195|199|262|265|298|
how to find the maximum drawdown ?
Initial value 0 !Here is an array
array = 0|-5|-14|49|35|-7|-15|48|36|99|67|70|90|107|170|233|296|269|243|237|223|220|200|196|195|199|262|265|298|
how to find the maximum drawdown ?
Initial value is 0 !