![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Please explain the meaning of the string ((m_patterns_usage&(((int)1)<< p))!=0) ?
The meaning of the line is checking the p-th bit of the m_patterns_usage variable for equality to 1 (more exactly, for non-zero).
Read more:
((int) 1) : means to convert the unit to int type to prevent the compiler from automatically converting it to the minimum integer type (char).
((int)1)<< p : means a bit shift of a unit of int type p bits to the left.
(m_patterns_usage & (((int)1)<<p) : bitwise operation And. It will result in a 0 if at least one of the result bits is not equal to one.
You may study the results of bitwise "&" and "|" operations by yourself from reference books. You cannot do without it if you want to continue programming.
Why would you need to deinitialize variables?
If you explain HOW it's done, I'll think of a reasonable use, if I have the slightest chance. ;)
There is no need to deinitialize variables, but it is very desirable to free memory referenced by pointers (dynamically created objects). Always.
If you can explain HOW it's done, I'll be sure to think of a reasonable use, if there's the slightest chance. ;)
There is no need to deinitialize variables, but it is very desirable to free memory referenced by pointers (dynamically created objects). Always.
From here
But I'd like to know why. Just in case.
And the objects don't have to be deinitialized forcibly, the terminal does it itself before deleting?
from here
This is in the string conversion. Maybe you mean just assigning an empty value?
Hello, how do I change cursor mode in the editor? I'm always in bold and it erases characters when I press the space bar, how do I switch to normal...?