Overloading operator =
-

Play videoPlease edit your post.
For large amounts of code, attach it - Both struct and class can have an assignment operator.
- Show us your code.
- If it doesn't compile there wont be a ex5. How should we know? There are no mind readers here. What do the logs say?
-
Please edit your post.
For large amounts of code, attach it - Both struct and class can have an assignment operator.
- Show us your code.
- If it doesn't compile there wont be a ex5. How should we know? There are no mind readers here. What do the logs say?
Sorry, It's my fault. New update of the terminal do not send the cursor to the error lines. It's simply stay on the top.
I will find the solution. Thanks.
P.S. To the developers -> After clicking "compile" put the cursor on the first line with error. Idiots like me are your client too :D
Sorry, It's my fault. New update of the terminal do not send the cursor to the error lines. It's simply stay on the top.
I will find the solution. Thanks.
P.S. To the developers -> After clicking "compile" put the cursor on the first line with error. Idiots like me are your client too :D
Hello everybody, I have a strange problem with overloading operator = in MQL5.
I have a struct used for data storage:
struct ZigZagData
{
double Value;
datetime Time;
};
Here everything is OK. I use this data type in one array
I need to overload operator = and change the example:
class ZigZagData
{
double Value;
datetime Time;
};